Copyright (c) 2005 Facult Polytechnique de Mons (eNTERFACE'05
workshop) - Christophe d'Alessandro Nicolas D'Alessandro Sylvain Le
Beux Juraj Simko Feride etin Hannes Pirker

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

Users shall give appropriate references to the eNTERFACE'05 Website
(www.enterface.net) in scholarly literature for which this software is
used or mentioned.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

-------------------------------------
Hannes Pirker, OFAI Vienna
eNTERFACE Workshop, August 2005, Mons
-------------------------------------

This Folder contains an implementation of the Fujisaki model of
intonation in PureData.


Requirements

Developed using Pure Data version 0.38.3 on Microsoft WindowsXP.


fuji.pd
-------

The main patch. 

 for text-to-phoneme conversion and for converting pho-files to the for 
Here also the default values for the Parameters alpha, beta and gamma
are set, which are fixed at the moment.

The fujiLog - array is used for visualizing the results only. If you
want to actually see the results currently the "mytimer"-metro-object
associated with it has to be started. In a "real" system the array and
the associated timer can be deactivated or removed. 

NOTE: 
 for text-to-phoneme conversion and for converting pho-files to the for 

In order to prevent the overflow of the fujiLog-array, fuji stops
after maxdur counts (currently 10000 ticks); This is also some sort of
"emergency break" in the testing phase.

In a "real" system this automatic shutdown should be removed. Alternatively a
reset mechanism can be added, that restarts the timer appropriately.

NOTE:

The "timeline" is produced by "metro"-ticks. I.e. take into account that the global variable "t" presents time in ticks not in seconds.

ControlFuji.pd
--------------

Patch that maps MIDI-Keyboard commands to Fujisaki-parameters:

Left hand:   Phrase Command
Right hand:  Accent Command, pressing key starts command and it is ON until either the key is released OR the "default duration" is reached.
 
Velocity is mapped to Command Amplitudes Aa and Pa

------------------------------------------------------------