Académique Documents
Professionnel Documents
Culture Documents
Guide Map
Welcome to Modalys!
Modalys
Summary This new version of the documentation covers the basic use of the Modalys physical modeling
An Introduction to Modalys synthesis software and is a first step at creating an even more comprehensive user's manual for the
Getting Started future. Although much of it has been redesigned and rewritten, many parts of it nonetheless are based
Objects
on the original Morrison/Waxman documentation (either verbatim or paraphrased). It corresponds to
Modalys 3.3.1, as of April 2013.
Accesses
Connections With Modalys you will enjoy creating mind-blowing virtual musical instruments based on physical
Controllers models!
The Modalys Workspace
Finite Elements
Appendix
Index
Please visit www.forumnet.ircam.fr and stay tuned for IRCAM technologies, and can get some help
from our Modalys Discussion Group.
Environment
As a Max/MSP set of objects for realtime use (MLYS and modalys~ objects). Compatible with
Max 5 and 6.
As an OpenMusic library.
http://support.ircam.fr/docs/Modalys/current/[28/05/13 14:34:59]
Modalys
Getting Started
An Introduction to Modalys
NB : this documentation can be accessed either from ModaLisp Help menu or directly from
/Applications/Modalys.
http://support.ircam.fr/docs/Modalys/current/[28/05/13 14:34:59]
Modalys - Map
Guide Map
Map
Modalys
Summary
An Introduction to Modalys
Getting Started
Objects
Object Properties
Common Parameters and Properties for Modal Objects
Material Properties for Strings, Plates and Membranes
Material Properties for Wooden Bars
Object Reference
One-Mass - Mono-directional (Harmonic Oscillator)
Two-Mass - Mono-directional
Two-Mass - Bi-directional
String (or Rod) - Mono-directional
String (or Rod) - Bi-directional
Tube - open/open
Tube - closed/open
Tube - closed/closed
Rectangular Membrane - Fixed
Circular Membrane - Fixed
Rectangular Plate - Fixed
Circular Plate - Clamped
Circular Plate - Free
Rectangular Free Bar
Violin Bridge
Cello Bridge
Jet Object
Single Point Object
Radiator Object
Clone Object
Save Modal Object
Read Modal Object
Resonance Model Object
Piano Soundboard
Finite Element
Object Utilities ©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/publication-web_1.html[28/05/13 14:35:20]
Modalys - Map
Accesses
Standard Accesses
Using Compiled Accesses
Hybrid Accesses
Tri-Hybrid Accesses
Get Access Info
Connections
Force Connection
Speed Connection
Position Connection
Acoustic Hole Connection
Adhere Connection
Strike Connection
Pluck Connection
Spring Connection
Reed Connection
Felt Hammer Connection
Mono-Fingerboard Connection
Normalised Valve Connection
Normalised Leaky Valve Connection
Bow Connection
Bi-Fingerboard Connection
Valve Connection
Leaky Valve Connection
Induction Connection
Labium Connection
Destroy Connection
Get Connection Info
http://support.ircam.fr/docs/Modalys/current/co/publication-web_1.html[28/05/13 14:35:20]
Modalys - Map
Controllers
Constant Controller
Envelope Controller
Access Speed Controller
Access Position Controller
Access Force Controller
Connection State Controller
Last Sample Controller
Sound File Controller
MIDI File Controller
Dynamic Controller
Send Message
Set Breakpoint
Signal Controller
Scale Controller
Arithmetic Controller
Expression Controller
Foreign-Call Controller
Sine Controller
Random Controller
Band-Limited Noise Controller
Noise (Band-Limited Impulse) Controller
Delay Controller
Bilinear (First Order IIR) Filter
Biquadratic (Second Order IIR) Filter
Constant Second Order (Bandpass) Filter
Variable Second Order (Bandpass) Filter
Dimension-Mapping Controller
Sum Controller
Spread Controller
Get Controller Info
The Modalys Workspace
New Workspace
Run Synthesis
Play Sound
Set Message Level
Set Precision
Run Synthesis in Real-Time
Listen to IP Port
Set Angle Mode
Get Version
Stop
Quit Modalys
Point Output
http://support.ircam.fr/docs/Modalys/current/co/publication-web_1.html[28/05/13 14:35:20]
Modalys - Map
Point Input
Save AIFF Sound File
Save Floating-Point Sound File
Set Sample Rate
Set Bit Depth
Set Number of Channels
Get Workspace Info
Get Angle Mode
Make Plot
Plot Value
Plot
Load Modalys Script
Load Modalys Component
Save Mlys Script File
MIDI to Frequency
Frequency to MIDI
Finite Elements
Appendix
Index
http://support.ircam.fr/docs/Modalys/current/co/publication-web_1.html[28/05/13 14:35:20]
Modalys - Summary
Guide Map
Modalys Summary
Summary
An Introduction to Modalys
Welcome to Modalys!
Getting Started
Objects This documentation is organized into the following sections:
Accesses
Introduction - an overview and history of the program
Connections
Getting Started - practical information about installing Modalys
Controllers Objects - the basic sound-producing structures in Modalys
The Modalys Workspace Accesses - points of communication between Modalys objects
Finite Elements Connections - physical interactions between Modalys objects
Appendix Controllers - managing Modalys parameters in time
Index Workspace - the Modalys working environment and its options
Finite Elements - [forthcoming] creating modal objects based on 3D meshes
Appendix - Supplementary Information
Index - an alphabetical index of Modalys functions
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/ModalysDocumentation.html[28/05/13 14:36:01]
Modalys
Guide Map
Welcome to Modalys!
Modalys
Summary This new version of the documentation covers the basic use of the Modalys physical modeling
An Introduction to Modalys synthesis software and is a first step at creating an even more comprehensive user's manual for the
Getting Started future. Although much of it has been redesigned and rewritten, many parts of it nonetheless are based
Objects
on the original Morrison/Waxman documentation (either verbatim or paraphrased). It corresponds to
Modalys 3.3.1, as of April 2013.
Accesses
Connections With Modalys you will enjoy creating mind-blowing virtual musical instruments based on physical
Controllers models!
The Modalys Workspace
Finite Elements
Appendix
Index
Please visit www.forumnet.ircam.fr and stay tuned for IRCAM technologies, and can get some help
from our Modalys Discussion Group.
Environment
As a Max/MSP set of objects for realtime use (MLYS and modalys~ objects). Compatible with
Max 5 and 6.
As an OpenMusic library.
http://support.ircam.fr/docs/Modalys/current/co/publication-web.html[28/05/13 14:36:50]
Modalys
Getting Started
An Introduction to Modalys
NB : this documentation can be accessed either from ModaLisp Help menu or directly from
/Applications/Modalys.
http://support.ircam.fr/docs/Modalys/current/co/publication-web.html[28/05/13 14:36:50]
Modalys - An Introduction to Modalys
Guide Map
For the moment this new manual refers mainly to the syntax of the current Lisp interface, ModaLisp.
Since other interfaces to the Modalys synthesis engine (i.e. the Open Music (OM) Modalys interface,
as well as the modalys~ and MLYS interfaces for Max/MSP) follow more or less the same paradigm, it
seemed to make sense to focus initially on the Lisp interface, since it serves as a common
denominator for all flavors of Modalys.
In addition to the above-mentioned people, special thanks also go to René Caussé, Mikhail Malt, Jean
Lochard, Manuel Poletti, Hans Peter Stubbe Teglbjærg and Karim Haddad, who helped to provide
examples as well as to unearth long-lost Modalys-related documentation and other materials from their
archives.
Center for Research in Electro-Acoustic Music and Audio Technology (CREAMA), Hanyang University
School of Music, Seoul
Overview
Modalys is a physical modeling synthesis program. In computer music, physical modeling synthesis
methods have been a good way of obtaining qualities of sound which are not easy to produce with
standard sound synthesis methods such as additive, subtractive or frequency modulation.
A sound wave is the result of a mechanical or acoustical vibration of a body. The vibration results from
an external source which injects energy into the body, for instance a hammer striking a membrane or
the flow of air perturbing a pipe. Usually the object source of energy is referred to as the “exciter” and
the vibrating object is called the “resonator.” The type of coupling between the two objects is known as
an “interaction.”
Most types of sound can be decomposed into two opposing categories: transient sounds whose
perceptual characteristics evolve quickly in time, and stationary sounds whose perceptual
characteristics evolve slowly in time. Sounds in the latter category are easy to reproduce with the
computer since the Fourier theory gives us powerful methods to decompose and generate static
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/Introduction.html[28/05/13 14:37:36]
Modalys - An Introduction to Modalys
periodic signals. Traditional synthesis methods are related to the Fourier theory and are thus
appropriate for generating stationary sounds. Unfortunately, the Fourier theory has some limitations
when dealing with transient sounds, so alternative methods (filtered noise and other non-periodic
synthesis methods) have been proposed as computational tools for generating sounds in this domain.
Physical modeling programs generate sounds which are the result of a numerical simulation of
vibrating structures represented inside the machine. In particular the program can simulate simple
structures such as strings, pipes and plates, but also complex ones such as a cello body or a clarinet
mouthpiece. Classical physical modeling techniques rely on space discretization - in other words, in
order to simulate a certain structure the computer represents it as a set of masses distributed uniformly
in the space. The principal problem with this approach is that the representation is always dependent
on the spatial properties of the structure and thus each structure needs an individual type of
representation.
The means by which the Modalys program generates the sound is called modal synthesis. Modal
synthesis is a musical application of modal theory which arises from the aircraft and bridge-building
industry, where precise simulation of vibrating structures submitted to external forces is needed. The
basic result of Modal theory is that the way a structure will react to a given external excitation can be
predicted by knowing which are the basic modes of vibration of the structure. A mode of vibration is
defined as a particular shape the structure assumes when it is excited by a periodic force at a certain
frequency and all its points resonate at that frequency. One of the fundamental principles of acoustics
states that any vibration of a structure can be decomposed as a superposition of its basic modes of
vibration. Modal theory has also developed experimental methods for measuring the modes of
vibration of a given musical instrument. Compared with the existing physical modeling synthesis
methods, modal synthesis offers two advantages:
• representation is independent of the spatial properties of the structure. This is especially useful since
continuous transition from one instrument into another reduces the transition of modal parameters.
• representation is directly related to the aural characteristics of the structure. The resonating
frequencies of a mode are the spectral components of the sound produced when exciting the structure
with an impulse.
To understand the idea of Modalys synthesis, imagine yourself as an instrument maker (luthier), sitting
at a large empty workbench. In the drawers of the bench, there is an unlimited supply of objects which
you can put upon the table and assemble into instruments. Objects, in most cases, can be thought of
as real physical entities which can be glued together, struck, plucked, bowed, or otherwise excited in
order to produce vibrations, and in turn, sounds. They include strings, air columns, two-mass models
(which act as hammers, picks or fingers depending on their sizes), metal plates, membranes, violin
bridges, and cello bridges.
Suppose that we would like to make a simple instrument which has one string. Our first difficulty arises
when we open the workbench drawer labeled “Strings.” Unlike the real-world instrument maker, who
might have a small drawer containing 20 different kinds of strings varying in size, material, length, and
thickness, we have a very large drawer. It is, in fact, an infinitely large drawer from which we can take a
string of any material and dimension. When choosing our string, then, we must be very specific about
its parameters. Later in this manual, we will go into more detail on this subject; for the moment, imagine
that we know exactly which string to take from the drawer and we put it on the table. String objects in
Modalys come with their ends fastened securely against virtual “walls,” so we don't have to worry about
making a body for the instrument. We can add one later if we want.
To play the string, we must first make several choices: what object do we use to excite the string (a
finger, a pick, a reed, or a sledgehammer, to name a few possibilities), and how do we excite it. The
possible answers to our first question are numerous; in fact, a Modalys object can be excited using any
other Modalys object. Most of the the types of objects which one normally uses to excite a string are
http://support.ircam.fr/docs/Modalys/current/co/Introduction.html[28/05/13 14:37:36]
Modalys - An Introduction to Modalys
variations of the two mass model (i.e., fingers, picks, hammers, bows, etc.), but one can also use other
objects such as air columns, and metal plates. Let us, for now, open the drawer labeled “Two-Mass
Models” and pull out a guitar pick. We now face the second question of what to do with the pick.
Modalys permits several interactions, called connections, between objects. Connections can be thought
of as black boxes which go between objects specifying a certain relationship between them. For
example, two objects may be “glued” together, one object may bow another, pluck another, strike
another, or push another. All of these interactions: glue, bow, pluck, strike, and push are connection
types (the complete list of possible connection types will be presented below). Each connection can be
piloted using controllers, which can be conceptualized as knobs which specify exactly how the
connection will be executed. A bow connection must be told, for example, how much rosin is on the
bow, how fast to move the bow across the string, etc. Controllers can either be told to maintain a
constant value, or can be changed dynamically during the synthesis.
Returning to our workbench surface, we see a string, a pick, and a black box with a few knobs on it
and the label “pluck.” To finally connect them together we must specify where the objects will
physically interact. For instance, do we want to pluck the middle of the string or near the end? Do we
want to pluck with the small end of the pick or the large end? To specify a physical location on a
Modalys object so that it can interact with other objects, we make what is called an access. The above
instrument will require four accesses: one at the point on the string where we want to pluck, one on the
part of the pick which will touch the string, one on the part of the pick which we will move with our
“hand,” and another at the point in the string where we will put our microphone (Modalys instruments,
for the time being, can only be listened to using “contact microphones,” i.e., one can put one’s ear
anywhere on the instrument, but not in the air).
Imagine, having specified the last bit of information about our instrument, that we send it off to the
manufacturing department. It comes back as a large black box labeled “Plucked string instrument” with
a speaker, and several knobs which correspond to all of the controllers which we specified (“constant”
controllers can be thought of as knobs that are glued in one place). Hence we have built a basic
instrument, and made some basic choices about how it is to be played. Now we are left with the task
of actually making music with it. To play this particular instrument, we need to move the pick across the
string so that the two objects make contact. This can be achieved by turning the knob that moves the
large end of the pick (i.e., the part that one normally holds). The method by which the knob is turned
depends on the type of Modalys controller we used to make the knob. There are controller types which
can read MIDI data from a file, follow breakpoint envelopes, etc. (Modalys has an extremely powerful
control system; we will look at some complex control setups later.) Once we have specified all the
control information, we now have a complete Modalys synthesis: the instrument, the “instrumentalist,”
and the “performance.” Let us look more closely at the specific components of a Modalys synthesis.
Connecting Modalys with various environments: Lisp, Max/MSP, Open Music and MatLab.
http://support.ircam.fr/docs/Modalys/current/co/Introduction.html[28/05/13 14:37:36]
Modalys - An Introduction to Modalys
Modalys itself has always been a computation engine connected to an interface that allows the user a
flexible and high-level control of the instrument-building and designing environment. Initially, Modalys
used a text-based interface using the Scheme programming language. This allowed the programming
language itself to be used for useful mathematical calculations as well as more complex programming
routines, according to the user's needs, for a particular synthesis. Today, there are a variety of
interfaces you can use to access the Modalys computation engine: the text-based Lisp and MatLab
interfaces, as well as the graphical (box and connection) interfaces available using Open Music and
Max/MSP.
For the moment, this document concentrates on the Lisp interface, and will be expanded in the near
future to include information about its use with other interfaces.
Lisp Interface
This text-based interface is the successor to the original Scheme interface, albeit using the Lisp
programming language (a cousin of Scheme). To use this interface you simply need to run the
ModaLisp application and, using its built-in text editor, evaluate a Lisp-based Modalys script. Synthesis
of a script can optionally be run in real-time (depending on the complexity of the instrument), since the
program can receive external OSC messages via a user-defined IP port.
Max/MSP Interface
This interface lets you run a Modalys instrument in real-time using the modalys~ object in Max/MSP.
There are two ways that you can do this:
One way is to load a .mlys-format file describing the instrument into the modalys~ object. Mlys
files (with the extension .mlys) are text-files that can be generated by ModaLisp specifically for
this purpose, using the "Export as mlys..." command from the File menu. (Mlys files are text-
based and human-readable, so you could always tweak them by hand or use some other
http://support.ircam.fr/docs/Modalys/current/co/Introduction.html[28/05/13 14:37:36]
Modalys - An Introduction to Modalys
method of generating them, if you really wanted to.) Generally Mlys files use dynamic
controllers instead of envelope controllers, so the synthesis can be controlled by Max messages
in real-time, taking advantage of the real-time message-processing capabilites of Max/MSP.
The other, somewhat more user-friendly, way to create Modalys instruments in Max/MSP is to
use a set of MLYS objects (whose name starts with "mlys.") connected to a mlys.script object
which itself is connected to the modalys~ object. These various higher-level objects graphically
describe the instrument and connections in an intuitive way and the mlys.script object
generates script commands for the modalys~ object which can synthesize the instrument.
The Modalys Library for Open Music lets you use IRCAM's OM environment to design and synthesize
Modalys instruments. Since OM is based on Lisp, you can interact with Modalys in much the same way
that you can using the ModaLisp interface, albeit graphically, but also allowing you to use OM's
powerful computer-assisted composition tools for synthesis control.
MatLab Interface
The MatLab interface to Modalys is a set of MatLab objects that lets you write text-based Modalys
scripts within the MatLab numerical computing environment. The text-based format uses a C-like
syntax, and is comprised of the same Modalys functions that are available in the Lisp version. The
MatLab interface is particularly useful for researchers who would like to have access to the Modalys
engine directly within their computation working environment for scientific applications.
http://support.ircam.fr/docs/Modalys/current/co/Introduction.html[28/05/13 14:37:36]
Modalys - Getting Started
Guide Map
NB: if you have some older setup for these environments, back up and then remove the corresponding
files before installing the new ones!
Authorizing Modalys
ModaLisp
ModaLisp is the primarily interface for learning Modalys and all examples in this documentation are
written in Lisp.
http://support.ircam.fr/docs/Modalys/current/co/Getting_Started.html[28/05/13 14:38:21]
Modalys - Getting Started
You can find great resources on the web to learn Lisp, such as LispWorks’ Lisp Documentation and
Tutorials.
Max/MSP Interface
To install the Max/MSP modalys~ object and MLYS instrument construction objects, you need to make
sure that they have been added to Max's search path.
From the Components/Max folder, the simplest way to setup Modalys for Max is to copy the modalys
folder to {Max Application Folder}/Cycling '74/.
Alternatively, you can add this modalys folder manually to Max's search path, without copying/pasting.
A great place to get started with MLYS is Manuel Poletti’s free Forum Max Apps which include a great
deal of well-designed Modalys examples. And yes it is free !
Some further documentation about Max Modalys objects will soon be added, for instance as
comprehensive Max help files.
To install the Modalys Library for Open Music, copy the Components/OpenMusic/Modalys 3.31/ folder
to {Open Music Application Folder}/libraries/.
Create a dedicated Modalys workspace and get started with the numerous and great Modalys
examples found in the Open Music tutorials.
MatLab Interface
To install Modalys for MatLab, open MatLab and go to File Menu > Set Path, choose Add Folder and
then locate the MatLab folder inside Components. That’s it !
http://support.ircam.fr/docs/Modalys/current/co/Getting_Started.html[28/05/13 14:38:21]
Modalys - Objects
Guide Map
Modalys Objects
Summary
An Introduction to Modalys Objects - The Building Blocks of Modalys
Getting Started
An object is a simulated vibrating body which serves as the basic sound producing element in Modalys.
Objects
1. Object Properties Objects are internally described using a set of modal data (a set of frequencies, loss coefficients and
2. Object Reference modeshape description for each frequency). They therefore have a linear response to excitation – this
3. Object Utilities
means that if a string behaves a certain way when plucked 10 cm, then it will do the same thing,
exactly 100,000 times more, if you pluck it by 10 kilometers. Fortunately, Modalys objects are
4. Hybrid Objects
unbreakable, and need not be insured when taken on tour! (One can, however, obtain interesting
Accesses
nonlinear effects in Modalys using connections, which will be discussed later.) Objects are created in
Connections
slightly different ways, depending on the interface being used (Lisp, OM, Max/MSP, etc...), but the
Controllers
basic Modalys command that is used (in a text-based environment) is “make-object” followed by the
The Modalys Workspace
object type and a list of parameters.
Finite Elements
Appendix
Index (make-object object_type list_of_parameters)
As far as the user is concerned, an object can be considered to be the physical body which it
represents, even though there a few essential differences to be taken into consideration:
Modalys objects are linear models. Thus, for example, a rectangular plate object cannot be
broken no matter how hard it is struck.
Modalys objects only vibrate (or otherwise change position) in a limited number of
predetermined axes (either one, two or three, depending on the object type).
Some Modalys objects have “ideal” parameters which cannot exist in reality. The membrane
objects, for example, are just surfaces with tension, size and mass; their thickness is zero and
their density is infinity.
The physical parameters of Modalys objects are only used to calculate their vibrations. Thus,
two objects cannot collide or otherwise interact unless they are specifically told to do by the
user via the use of a connection.
The remainder of this section is devoted to the types of objects that Modalys can create (given a list of
physical parameters such as density, tension, etc...) Many objects share general parameters, but
specific information about each object's parameters, accesses, etc... is provided on the documentation
page for that object.
Objects interact with other Modalys items (such as controllers and connections) through accesses,
described in detail in the next section. For now, it is enough to know that an access is a point on a
Modalys object that allows it to communicate with other Modalys objects, and that different objects
have different access types, depending on how the objects vibrate. For example, a bi-string object can
be accessed in the 'trans0 (horizontal) and 'trans1 (vertical) directions, while an air column must be
accessed in the 'long (meaning longitudinal - across the length of the tube) direction. The available
access types for each object are also described in the following object description pages.
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/Objects.html[28/05/13 14:39:09]
Modalys - Objects
Object Properties
Object Reference
Object Utilities
Hybrid Objects
We suggest you first read the section on object properties in order to better understand some of the
object options presented in the subsequent reference section.
http://support.ircam.fr/docs/Modalys/current/co/Objects.html[28/05/13 14:39:09]
Modalys - Accesses
Guide Map
Modalys Accesses
Summary
An Introduction to Modalys Accesses - Points of Communication between Modalys Objects
Getting Started
Accesses in Modalys are the “ports” through which objects communicate with each other and with the
Objects
outside world. Every situation wherein information must be passed to or taken from an object requires
Accesses
an access. For example, if two objects are to be joined together by an 'adhere connection (connections
1. Standard Accesses will be discussed below), it is necessary to have one access on each object to be adhered to. An
2. Using Compiled Accesses important point in the understanding of Modalys accesses is that they have both a “physical” location
3. Hybrid Accesses on the object, and a direction, or axis, of movement. A 'bi-string object, for example, can be accessed
4. Tri-Hybrid Accesses in either of two transverse directions: 'trans0 and 'trans1. You can think of these as horizontal and
5. Get Access Info vertical, if it helps you mentally envision them. If we create an access near the midpoint of a 'bi-string,
Connections with a 'trans0 (horizontal) direction of movement, a diagram of the string and its access would look
Controllers something like the this:
The Modalys Workspace
Finite Elements
Appendix
Index
If we then create a second access at another point on the string with a 'trans1 (vertical) direction of
movement, our diagram becomes:
As the two accesses have different directions, they are completely independent and cannot in any way
effect each other. If, for example, we pluck the 'trans0 access and attach a speaker to the 'trans1
access, we will hear nothing (because there are no vibrations in the vertical direction), even though the
string is vibrating from side to side. In order to pluck a string and listen to the effect, we need two
accesses with the same direction: one for the interaction with the pick object, and one for the speaker:
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/Accesses.html[28/05/13 14:39:57]
Modalys - Accesses
Some interactions, like the 'bow interaction, require using both access directions; these kinds of bi-
directional interactions would cause the string to vibrate in both 'trans0 and 'trans1 directions. (For this
reason, we usually use a simpler 'mono-string model for 'pluck or 'strike interactions.)
Creating Accesses
Standard accesses are created by the function (make-access ... ) which takes the following Lisp
syntax:
The location of the access on the object is specified by a controller. This can be either a one
dimensional controller as in the case of a string; or it could be a two dimensional controller, specifying
an (x, y) location, as in the case of a rectangular plate. Objects that vibrate in three directions would
obviously need a three-dimensional controller (x,y,z).
The possible directions of access depend on the object being used. For example, a bi-string object can
be accessed in the 'trans0 (horizontal) and 'trans1 (vertical) directions, while an air column must be
accessed in the 'long (meaning longitudinal - across the length of the tube) direction. Specific
information about which accesses can be used for a given object can be found on the individual
Modalys objects' reference pages.
Standard Accesses - details about the most commonly used generic “plain vanilla” access
Compiled Accesses - computation-saving accesses that are specific to plates and membranes
Hybrid Accesses - creating accesses specific to hybrid objects
Tri-Hybrid Accesses - creating accesses specific to tri-hybrid objects
Access Utilities
Get Access Info - obtaining access-specific data using the standard (get-info ... ) function.
http://support.ircam.fr/docs/Modalys/current/co/Accesses.html[28/05/13 14:39:57]
Modalys - Connections
Guide Map
Modalys Connections
Summary
An Introduction to Modalys Connections - Creating Interactions between Modalys Objects
Getting Started
Connections define interactions between Modalys objects. If you think of objects and their accesses as
Objects
nouns in Modalys grammar, connections are the verbs, since they create actions involving one or more
Accesses
accesses. Each connection performs a very specific task. An 'adhere connection, for example, assures
Connections
that two accesses always have the same speed.
1. Force Connection
Imagine the scenario of an access on a string adhered to an access on a bridge: as soon as the
2. Speed Connection
connection is made between the two objects, if the string is excited (presuming it vibrates in the same
3. Position Connection
direction as the access) the access will have a speed, which is immediately transferred to the bridge
4. Acoustic Hole Connection
access so that its speed becomes the same. Note that the 'adhere connection does not ensure that two
5. Adhere Connection
accesses will have the same position. If, for example, we told the string access that its position was
6. Strike Connection
suddenly 10 meters away, the 'adhere connection would not know the difference and thus would not
7. Pluck Connection
change the bridge’s position.
8. Spring Connection
9. Reed Connection Connections are created using the function make-connection which takes the following text-based (Lisp
10. Felt Hammer Connection
environment) syntax:
The following pages contain the individual Modalys connection reference pages. The connections are
organized in categories ranging from basic to complex instead of being ordered alphabetically.
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/Connections.html[28/05/13 14:41:32]
Modalys - Connections
Force Connection
Speed Connection
Position Connection
Acoustic Hole Connection
Strike Connection (this connection has a unilateral option)
Bilateral Connections
Adhere Connection
Strike Connection
Pluck Connection
Spring Connection
Reed Connection
Felt Hammer Connection
Mono-Fingerboard Connection
Normalised Valve Connection
Normalised Leaky Valve Connection
Valve Connection (this connection has a bilateral option)
Leaky Valve Connection (this connection has a bilateral option)
Induction Connection
Complex Connections
Bow Connection
Bi-Fingerboard Connection
Valve Connection
Leaky Valve Connection
Labium Connection
Connection Utilities
(destroy-connection ... )
(get-info 'connection ... )
http://support.ircam.fr/docs/Modalys/current/co/Connections.html[28/05/13 14:41:32]
Modalys - Controllers
Guide Map
Accesses Controllers
Connections
Controllers Controllers - Managing Modalys Objects, Accesses and Connections in Time
1. Constant Controller Any information in a Modalys synthesis which can be changed over time by the user is specified by
2. Envelope Controller controllers. This is very important to the modular construction of Modalys because, after having created
3. Access Speed Controller a complicated instrument, one can put the majority of detailed information in a “black box” and simply
4. Access Position Controller turn the knobs of certain controllers in order to make a sound. Controllers vary in dimension and
5. Access Force Controller “intelligence.” Single-dimension controllers are used to control a single value, whereas multi-
6. Connection State Controller dimensional controllers are needed to control more complex parameters, such as the (x, y) location of
7. Last Sample Controller an access on a plate, just to give one practical example.
8. Sound File Controller
There are two general categories of controllers in Modalys: constant and dynamic.
9. MIDI File Controller
10. Dynamic Controller Constant controllers are the simplest type of controller. They represent a “knob” or “slider” (or an array
11. Send Message of them) which remains in one fixed position (a constant value) throughout an entire synthesis. In some
12. Set Breakpoint
cases constant controllers can be replaced with single numerical values as arguments. Generally,
though, if a Modalys function calls for a controller, it is best to use a constant controller to set a fixed
13. Signal Controller
value for that controller. Some examples are shown on the constant controller's reference page.
14. Scale Controller
15. Arithmetic Controller Constant controllers are usually created with the following shorthand syntax:
16. Expression Controller
17. Foreign-Call Controller
(const value1 [value2 value3 ...])
18. Sine Controller
19. Random Controller
20. Band-Limited Noise Controller Dynamic controllers are those whose values change over time. They can be as basic as an envelope
21. Noise (Band-Limited Impulse) defining a breakpoint function whose (time, value) pairs are expressed as a list of lists, and more
Controller complex controllers can be those which read MIDI files, outputting several values (dimensions) at a
22. Delay Controller
time. Some controllers can also themselves be composed of (programming code) functions which look
23. Bilinear (First Order IIR) Filter at what is happening in the synthesis and make decisions about how its values should change.
24. Biquadratic (Second Order IIR)
Filter All controllers have the following (text-based) syntax in common:
25. Constant Second Order
(Bandpass) Filter
26. Variable Second Order (make-controller controller_type dimension ... )
(Bandpass) Filter
27. Dimension-Mapping Controller
28. Sum Controller The dimension value must be provided by the user, even if its value seems obvious. Specific
29. Spread Controller information on the subsequent arguments and parameters for each controller type is found on the
30. Get Controller Info controllers' reference pages, themselves.
The Modalys Workspace
Finite Elements
The following pages contain the individual Modalys controller reference pages. The controllers are
Appendix organized thematically in categories ranging roughly from basic to complex instead of being ordered
Index alphabetically.
Basic Controllers
http://support.ircam.fr/docs/Modalys/current/co/Controllers.html[28/05/13 14:42:06]
Modalys - Controllers
Constant Controller
Envelope Controller
The following controllers get information from an access, interaction or other point from the Modalys
synthesis environment:
Controller Utilities
(get-info 'value ... ) - obtain the current value of a controller
http://support.ircam.fr/docs/Modalys/current/co/Controllers.html[28/05/13 14:42:06]
Modalys - Controllers
http://support.ircam.fr/docs/Modalys/current/co/Controllers.html[28/05/13 14:42:06]
Modalys - The Modalys Workspace
Guide Map
Modalys
Summary
The Modalys Workspace
An Introduction to Modalys
Other Commands in the Modalys Workspace
Getting Started
Objects The Modalys Workspace is the environment in which Objects, Accesses, Connections and Controllers
Accesses are created. The workspace contains other important tools, such as those for getting audio in and out
Connections of the Modalys environment, running synthesis (when not using Modalys in a real-time environment
Controllers such as Max/MSP), and getting and setting other Modalys settings and options.
The Modalys Workspace
The most important tools in this category are probably the “make-point-output” and “make-point-input”
1. New Workspace functions. The former lets you acquire vibrations from an access in order to either output it in real-time,
2. Run Synthesis play it after non-real-time calculation or save it to disk as a sound file. The latter lets you send
3. Play Sound vibrations to an access via an input sound file or real-time input.
4. Set Message Level
Other workspace options include setting the sampling rate and bits of precision for the calculation,
5. Set Precision
setting the number of input and output channels (although this is by default done automatically
6. Run Synthesis in Real-Time
depending on the number of point-inputs and point-outputs), getting information from objects,
7. Listen to IP Port
accesses and connections within the workspace, setting the verbosity of messages Modalys reports
8. Set Angle Mode back to the user, and clearing the Modalys workspace to a default (empty) state.
9. Get Version
10. Stop Modalys Workspace Commands
11. Quit Modalys
The following are the basic and general-purpose workspace commands:
12. Point Output
13. Point Input New
14. Save AIFF Sound File Run Synthesis
15. Save Floating-Point Sound File Play
16. Set Sample Rate Set Message Level
17. Set Bit Depth Set Precision
18. Set Number of Channels Set Angle Mode
19. Get Workspace Info Get Version
20. Get Angle Mode
Stop
Quit
21. Make Plot
22. Plot Value
23. Plot Sound Related Commands
24. Load Modalys Script The following are commands relating to sound generation, input and output:
25. Load Modalys Component
Point Output
26. Save Mlys Script File
Point Input
27. MIDI to Frequency
Save AIFF FIle
28. Frequency to MIDI
Save Floating-Point File
Finite Elements
Set Sample Rate
Appendix
Set Bit Depth
Index Set Number of Channels
Real-Time Commands
http://support.ircam.fr/docs/Modalys/current/co/Workspace.html[28/05/13 14:42:41]
Modalys - The Modalys Workspace
Run in Real-Time
Listen to IP Port
The Get Info command is a basic function with a variety of commands that allow you to retrieve a vast
amount of information about all sorts of things in the workspace. The commands themselves do not
require their own individual pages, however, as they can each be explained simply. We have divided
the get-info command up into separate sections with items grouped according to category (object,
access, connection, controller, workspace). The workspace-related commands are explained here,
alongside other workspace-related information-obtaining commands.
Get Info
Get Angle Mode
The following commands can be used to plot controller data to a graph in an external window. This can
be useful to debug problematic syntheses, in addition to helping visualize parameters and their results.
(As an example, all of the graphs in the controllers section were plotted using this feature.)
Make Plot
Plot Value
Plot
The following are commands relating to Modalys file input and output:
General Utilities
These are other useful tools that are integrated into the environment:
MIDI to Frequency
Frequency to MIDI
http://support.ircam.fr/docs/Modalys/current/co/Workspace.html[28/05/13 14:42:41]
Modalys - Finite Elements
Guide Map
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/Finite_Elements.html[28/05/13 14:43:16]
Modalys - Appendix
Guide Map
Modalys Appendix
Summary
An Introduction to Modalys Obsolete Commands
Getting Started
Often new and improved features in Modalys make older features obsolete or redundant. This section
Objects
documents some older Modalys commands you might encounter in older Modalys text files. We do not
Accesses
suggest using these features, but rather these additional reference pages are provided to help you be
Connections
able to update old files to the new syntax, as appropriate.
Controllers
The Modalys Workspace Actually, I decided to document the obsolete commands in the relevant item's current page, since the
Finite Elements
commands themselves will be indexed.
Appendix
Index
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/Appendix.html[28/05/13 14:44:03]
Modalys - Index
Guide Map
Modalys Index
Summary
An Introduction to Modalys Function Index
Getting Started
An alphabetical index of Modalys functions. This list includes obsolete and deprecated functions which
Objects
have been linked to their current counterparts, as an aid to updating older scripts.
Accesses
Connections
A
Controllers
The Modalys Workspace (attach-mode-controllers ... )
Finite Elements
Appendix C
Index (const ... )
(destroy-connection ... )
(freeze-object ... )
(freq-to-midi ... )
(get-angle-mode)
(get-info 'max-sample)
(get-info 'num-outputs)
http://support.ircam.fr/docs/Modalys/current/co/Index.html[28/05/13 14:44:36]
Modalys - Index
(get-info 'sample-period)
(get-info 'sample-rate)
(get-info 'time)
(get-version)
(listen-ip-port ... )
(load ... )
(load-component ... )
(make-access ... )
http://support.ircam.fr/docs/Modalys/current/co/Index.html[28/05/13 14:44:36]
Modalys - Index
(make-hybrid-access ... )
http://support.ircam.fr/docs/Modalys/current/co/Index.html[28/05/13 14:44:36]
Modalys - Index
(make-plot)
(make-point-input ... )
(make-point-output ... )
(make-tri-hybrid-access ... )
(midi-to-freq ... )
(new)
Piano Soundboard
(play)
(plot ... )
(plot-value ... )
(quit)
(run ... )
(run-real-time ... )
http://support.ircam.fr/docs/Modalys/current/co/Index.html[28/05/13 14:44:36]
Modalys - Index
(save-aiff ... )
(save-float ... )
(save-object ... )
(send-message ... )
(set-amplitude ... )
(set-angle-mode ... )
(set-bit-depth ... )
(set-breakpoint ... )
(set-frequency ... )
(set-loss ... )
(set-message-level ... )
(set-mode-freq ... )
(set-mode-freq! ... )
(set-mode-loss ... )
(set-mode-loss! ... )
(set-number-of-channels ... )
(set-pitch ... )
(set-precision ... )
(set-sample-rate ... )
(stop)
(unfreeze-object ... )
(vget ... )
(vset ... )
(with-compiled-accesses ... )
(with-pitch-adjustment ... )
http://support.ircam.fr/docs/Modalys/current/co/Index.html[28/05/13 14:44:36]
Modalys - Object Properties
Guide Map
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/ObjectProperties.html[28/05/13 14:45:09]
Modalys - Common Parameters and Properties for Modal Objects
Guide Map
For the purposes of discussion, we are grouping the parameters into three general categories:
Modal Properties and Material Properties and Physical Measurements. Although all the physical
parameters of an object are used together to calculate a model which operates on a modal basis,
we are separating the parameters into these groups because, with very few exceptions, the modal
properties are common to all Modalys objects, whereas the physical properties and
measurements will vary greatly depending on the type and size of object being modeled.
Modal Properties
modes
This value determines the number of modes of vibration calculated in the simulation of the object.
As the number of modes is increased, higher partials are added to the resultant sound. Thus if
ten modes are used, the lowest ten frequencies produced by the vibration of the object are
computed. Maximum detail is obtained when the number of modes is high enough so that all
frequencies below the Nyquist frequency are accounted for. Most objects will have have a user-
definable number of modes, but some objects (such as the bi-two-mass) have a fixed number of
modes, in which case this option is not settable.
These are©IRCAM
coefficients
2013which describe how the object loses energy. Freq-loss describes the
http://support.ircam.fr/docs/Modalys/current/co/object_properties_general.html[28/05/13 14:45:40]
Modalys - Common Parameters and Properties for Modal Objects
decay of the sound proportionally to the square of the frequencies, whereas const-loss describes
the overall decay of all the object’s frequencies.
More specifically, each mode of the object loses energy in proportion to the following equation,
where ƒ is the frequency of the mode:
If the two values are both zero, the object will resonate forever. If const-loss is non-zero and freq-
loss is zero, all modes will lose energy at the same rate. If freq-loss is non-zero, higher frequency
modes will lose energy more rapidly than lower ones. When saving modal data to a file (and
when reading it again), these two coefficients are combined as above to compute a specific loss
value for each mode. These two loss parameters are also part of the definition of the material
being modeled, as different materials lose energy at different rates. (Think of the difference
between a marimba, a vibraphone, and a lithophone - wood, metal and stone will have different
freq-loss and const-loss parameters to model how these different materials lose energy.)
Some objects (such as the bi-two-mass object) have separate freq-loss and const-loss
parameters for each of the object's vibrational directions.
In the simplest terms, const-loss affects overall decay/damping of the sound (whether it is
sustained or staccato), whereas freq-loss affects the perceived brightness of the resonating
sound as it decays.
Material Properties
density
The density of a material is measured in kg/m^3, and corresponds to mass per unit volume.
young
The Young's modulus of a material (also sometimes referred to as tensile modulus or elastic
modulus) is measured in Pascals (N/m^2). It is a measure of the elasticity of a given material.
Higher values imply more stiffness (less elasticity) in the material, resulting in objects whose
mode frequencies have a more inharmonic relationship to one another. Some materials, such as
wood, will have a different Young's modulus on different axes (i.e. along the grain, radially to the
grain, and tangentially to the grain). Often, Young's modulus is measured in gigapascals (GPa),
where 1 GPa = 1.0e9 N/m^2. See the tables of material properties for appropriate values.
poisson
Poisson coefficient (or Poisson's ratio) represents the ratio of the change in physical volume
between two vibrating directions, in other words the degree to which a material bulges as it
shortens.
The coefficient is a value in the range of 0 to 0.5 for most common materials. Metals generally
have a Poisson's Ratio of around 0.3, and rocks and minerals around 0.25, wood in the range of
0.35 to 0.4, and fibers generally around 0.4. Incompressible materials (liquids, for example) are
considered to have a poisson's ratio of 0.5. Rubber generally has a high poisson's ratio,
approaching 0.5, and Cork is at the other end of the spectrum - around zero. See the tables of
material properties for appropriate values. Not all Modalys objects take this parameter into
consideration.
air-density
http://support.ircam.fr/docs/Modalys/current/co/object_properties_general.html[28/05/13 14:45:40]
Modalys - Common Parameters and Properties for Modal Objects
Density of the air in kg/m^3. On the planet earth at room temperature at sea level this is normally
1.2 See table of air properties at different temperatures (at sea level).
-150 2.793
-100 1.980
-50 1.534
0 1.293
20 1.205
40 1.127
60 1.067
80 1.000
100 0.946
150 0.835
200 0.746
250 0.675
rho
This is another term for density or air-density that is used by some objects, and consequently
also given in kg/m^3. In Modalys it usually refers to the density of air or another sound
propagation medium, as opposed to the density parameter that describes the physical properties
of material.
air-elasticity
Elasticity of the air in m^2/kg. On the planet earth at room temperature at sea level this is
normally around 7.14e-6 to 7.21e-6. Modalys actually uses the very finely detailed measurement
7.2087658592848905e-6 as a default value, although this is simply given as 7.21e-6 in the object
reference pages.
celerity
This is another term for air-speed or the speed of sound in air that is used by some objects, given
in m/s. The speed of sound in air on earth at room temperature at sea level is usually around 340
m/s.
Physical Measurements
http://support.ircam.fr/docs/Modalys/current/co/object_properties_general.html[28/05/13 14:45:40]
Modalys - Common Parameters and Properties for Modal Objects
The use of these parameters will vary from object to object. They are fairly self-explanitory and
are used to describe the physical dimensions and other measurements of the objects. Tension
usually will refer to strings and membranes, and stiffness to springs.
Length, width, thickness and radius are measured in meters, tension is measured in Newtons,
and stiffness (for springs) is measured in N/m.
http://support.ircam.fr/docs/Modalys/current/co/object_properties_general.html[28/05/13 14:45:40]
Modalys - Material Properties for Strings, Plates and Membranes
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/object_properties_material.html[28/05/13 14:46:15]
Modalys - Material Properties for Strings, Plates and Membranes
* incompressible materials such as liquids are considered to have a poisson ratio of 0.5
http://support.ircam.fr/docs/Modalys/current/co/object_properties_material.html[28/05/13 14:46:15]
Modalys - Material Properties for Strings, Plates and Membranes
*arsenic has a highly variable poisson ratio depending on the direction of stress
Fibers
Material Properties of Natural and Synthetic Fibers
* natural fibers without a measured poisson coefficient can be considered to have a value of 0.4
for this parameter
Other Materials
Material Properties of Other Natural and Synthetic Materials
http://support.ircam.fr/docs/Modalys/current/co/object_properties_material.html[28/05/13 14:46:15]
Modalys - Material Properties for Strings, Plates and Membranes
** no data available for marshmallow - we suggest a value near zero, similar to cork.
*** incompressible materials such as liquids are considered to have a poisson ratio of 0.5
http://support.ircam.fr/docs/Modalys/current/co/object_properties_material.html[28/05/13 14:46:15]
Modalys - Material Properties for Wooden Bars
Guide Map
©IRCAM920
Ice (i.e. 2013 1.2e10 8.6e9 - - -
http://support.ircam.fr/docs/Modalys/current/co/object_properties_wood.html[28/05/13 14:46:50]
Modalys - Material Properties for Wooden Bars
water)
http://support.ircam.fr/docs/Modalys/current/co/object_properties_wood.html[28/05/13 14:46:50]
Modalys - Material Properties for Wooden Bars
http://support.ircam.fr/docs/Modalys/current/co/object_properties_wood.html[28/05/13 14:46:50]
Modalys - Object Reference
Guide Map
Jet
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/ObjectReference.html[28/05/13 14:47:23]
Modalys - Object Reference
Other Objects
These objects are not created using physical properties, but can be used as objects in the Modalys
environment.
Single-Point
Radiator
Clone
Object data can additionally be read from a data file created in Modalys or externally.
Save Object (not an object per se, but a utility for saving an object’s modal data to disk, this
also appears in the object utilities section)
Read From File
Resonance Model Object [this might seems to be a bit buggy]
Piano Soundboard (provided as a data file)
Finite Element Object (a dedicated section to creating finite element objects is forthcoming)
http://support.ircam.fr/docs/Modalys/current/co/ObjectReference.html[28/05/13 14:47:23]
Modalys - One-Mass - Mono-directional (Harmonic Oscillator)
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/object_mass_one_mono.html[28/05/13 14:47:55]
Modalys - One-Mass - Mono-directional (Harmonic Oscillator)
Accesses
(make-access my-harmonic-
oscillator my-controller 'normal)
Options
Tuning
'stiffness
'mass
For example:
(mass 5e-3)
(stiffness 10)
(freq-loss 10)
(const-loss 1) ))
http://support.ircam.fr/docs/Modalys/current/co/object_mass_one_mono.html[28/05/13 14:47:55]
Modalys - Two-Mass - Mono-directional
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/object_mass_two_mono.html[28/05/13 14:48:27]
Modalys - Two-Mass - Mono-directional
Accesses
Options
http://support.ircam.fr/docs/Modalys/current/co/object_mass_two_mono.html[28/05/13 14:48:27]
Modalys - Two-Mass - Bi-directional
Guide Map
(const-loss0 0)
(const-loss1 0))
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/object_mass_two_bi.html[28/05/13 14:49:06]
Modalys - Two-Mass - Bi-directional
Parameters
Accesses
Options
Tuning
'stiffness0
'stiffness1
http://support.ircam.fr/docs/Modalys/current/co/object_mass_two_bi.html[28/05/13 14:49:06]
Modalys - Two-Mass - Bi-directional
'small-mass0
'small-mass1
'large-mass0
'large-mass1
For example:
http://support.ircam.fr/docs/Modalys/current/co/object_mass_two_bi.html[28/05/13 14:49:06]
Modalys - String (or Rod) - Mono-directional
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/object_string_mono.html[28/05/13 14:49:39]
Modalys - String (or Rod) - Mono-directional
Accesses
Options
Controllers
http://support.ircam.fr/docs/Modalys/current/co/object_string_mono.html[28/05/13 14:49:39]
Modalys - String (or Rod) - Mono-directional
Tuning
'length
'tension
'density
'young
For example:
Example
;;;----------------------------
http://support.ircam.fr/docs/Modalys/current/co/object_string_mono.html[28/05/13 14:49:39]
Modalys - String (or Rod) - Mono-directional
-------------------------------
-----------
;;;
(new)
;;;
;;;
;;;
;;;
(make-point-output my-string-out)
;;;
(run 2)
(play)
http://support.ircam.fr/docs/Modalys/current/co/object_string_mono.html[28/05/13 14:49:39]
Modalys - String (or Rod) - Mono-directional
http://support.ircam.fr/docs/Modalys/current/co/object_string_mono.html[28/05/13 14:49:39]
Modalys - String (or Rod) - Bi-directional
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/object_string_bi.html[28/05/13 14:50:12]
Modalys - String (or Rod) - Bi-directional
length: in meters.
tension: in Newtons.
density: in kg/m^3. See chart of material
properties for appropriate values.
radius: in meters.
young: Young's modulus, in N/m^2. See chart of
material properties for appropriate values.
freq-loss, const-loss: loss coefficients. See
General object information.
Accesses
Options
Controllers
http://support.ircam.fr/docs/Modalys/current/co/object_string_bi.html[28/05/13 14:50:12]
Modalys - String (or Rod) - Bi-directional
Tuning
'length
'tension
'density
'young
For example:
Example
http://support.ircam.fr/docs/Modalys/current/co/object_string_bi.html[28/05/13 14:50:12]
Modalys - String (or Rod) - Bi-directional
MODALYS -*-
;;;----------------------------
-------------------------------
-----------
;;;
(new)
;;;
;;;
my-bow-v-bpt my-bow-h-
bpt .01
my-string-v-bpt my-
string-h-bpt 0
'(2 10 5 4)))
;;;
http://support.ircam.fr/docs/Modalys/current/co/object_string_bi.html[28/05/13 14:50:12]
Modalys - String (or Rod) - Bi-directional
(make-controller
'envelope 1 '((0 1) (1 2) (2 1))))
(make-controller
'envelope 1 '((0.0 0.010) (0.2 -
0.001) (1.5 -0.001) (3 0.010))))
;;;
(make-point-output (make-access
my-string (const .6) 'trans0))
;;;
(run 5)
(play)
http://support.ircam.fr/docs/Modalys/current/co/object_string_bi.html[28/05/13 14:50:12]
Modalys - Tube - open/open
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/object_tube_open_open.html[28/05/13 14:50:45]
Modalys - Tube - open/open
Accesses
Options
Controllers
(make-object 'open-open-tube
(length my-ctrl))
Tuning
'length
For example:
http://support.ircam.fr/docs/Modalys/current/co/object_tube_open_open.html[28/05/13 14:50:45]
Modalys - Tube - open/open
http://support.ircam.fr/docs/Modalys/current/co/object_tube_open_open.html[28/05/13 14:50:45]
Modalys - Tube - closed/open
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/object_tube_closed_open.html[28/05/13 14:51:16]
Modalys - Tube - closed/open
Accesses
Options
Controllers
(make-object 'closed-open-tube
(length my-ctrl))
Tuning
'length
For example:
http://support.ircam.fr/docs/Modalys/current/co/object_tube_closed_open.html[28/05/13 14:51:16]
Modalys - Tube - closed/open
Use as a Tone-Hole
(make-object 'closed-open-tube
(modes 4)
(length 2e-3)
(radius0 5e-3)
(radius1 5e-3)
(freq-loss 10) )
http://support.ircam.fr/docs/Modalys/current/co/object_tube_closed_open.html[28/05/13 14:51:16]
Modalys - Tube - closed/closed
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/object_tube_closed_closed.html[28/05/13 14:51:50]
Modalys - Tube - closed/closed
Accesses
Options
Controllers
(make-object 'closed-closed-tube
(length my-ctrl))
Tuning
'length
For example:
http://support.ircam.fr/docs/Modalys/current/co/object_tube_closed_closed.html[28/05/13 14:51:50]
Modalys - Tube - closed/closed
http://support.ircam.fr/docs/Modalys/current/co/object_tube_closed_closed.html[28/05/13 14:51:50]
Modalys - Rectangular Membrane - Fixed
Guide Map
Parameters
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/object_membrane_rect_fixed.html[28/05/13 14:52:21]
Modalys - Rectangular Membrane - Fixed
Accesses
Options
Tuning
'size
'tension
'mass
Note that for 'size, both the x and y dimensions are scaled
together proportionally in order to preserve the harmonic
relationships the membrane's mode frequencies.
http://support.ircam.fr/docs/Modalys/current/co/object_membrane_rect_fixed.html[28/05/13 14:52:21]
Modalys - Rectangular Membrane - Fixed
http://support.ircam.fr/docs/Modalys/current/co/object_membrane_rect_fixed.html[28/05/13 14:52:21]
Modalys - Circular Membrane - Fixed
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/object_membrane_circ_fixed.html[28/05/13 14:52:52]
Modalys - Circular Membrane - Fixed
radius: in meters.
tension: in Newtons.
mass or surface-density: surface density in
kilograms.
freq-loss, const-loss: loss coefficients. See
General object information.
Accesses
Options
Tuning
'radius
'tension
'mass
For example:
http://support.ircam.fr/docs/Modalys/current/co/object_membrane_circ_fixed.html[28/05/13 14:52:52]
Modalys - Rectangular Plate - Fixed
Guide Map
(freq-loss 10)
(const-loss 10))
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/object_plate_rect_fixed.html[28/05/13 14:53:24]
Modalys - Rectangular Plate - Fixed
Parameters
Accesses
Options
Tuning
'size
'thickness
'density
'young
http://support.ircam.fr/docs/Modalys/current/co/object_plate_rect_fixed.html[28/05/13 14:53:24]
Modalys - Rectangular Plate - Fixed
Note that for 'size, both the x and y dimensions are scaled
together proportionally in order to preserve the harmonic
relationships the plate's mode frequencies.
http://support.ircam.fr/docs/Modalys/current/co/object_plate_rect_fixed.html[28/05/13 14:53:24]
Modalys - Circular Plate - Clamped
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/object_plate_circ_fixed.html[28/05/13 14:53:57]
Modalys - Circular Plate - Clamped
Accesses
Options
Tuning
'radius
'thickness
'density
'young
For example:
http://support.ircam.fr/docs/Modalys/current/co/object_plate_circ_fixed.html[28/05/13 14:53:57]
Modalys - Circular Plate - Clamped
http://support.ircam.fr/docs/Modalys/current/co/object_plate_circ_fixed.html[28/05/13 14:53:57]
Modalys - Circular Plate - Free
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/object_plate_circ_free.html[28/05/13 14:54:29]
Modalys - Circular Plate - Free
Accesses
Options
Tuning
'radius
'thickness
'density
'young
For example:
http://support.ircam.fr/docs/Modalys/current/co/object_plate_circ_free.html[28/05/13 14:54:29]
Modalys - Circular Plate - Free
http://support.ircam.fr/docs/Modalys/current/co/object_plate_circ_free.html[28/05/13 14:54:29]
Modalys - Rectangular Free Bar
Guide Map
(const-loss 6.22))
Parameters
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/object_bar_rect_free.html[28/05/13 14:55:01]
Modalys - Rectangular Free Bar
Accesses
Options
Tuning
http://support.ircam.fr/docs/Modalys/current/co/object_bar_rect_free.html[28/05/13 14:55:01]
Modalys - Rectangular Free Bar
'length
'thickness
'density
Note that for 'size, both the x and y dimensions are scaled
together proportionally in order to preserve the harmonic
relationships the plate's mode frequencies.
http://support.ircam.fr/docs/Modalys/current/co/object_bar_rect_free.html[28/05/13 14:55:01]
Modalys - Violin Bridge
Guide Map
(freq-loss 10)
(const-loss 10))
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/object_bridge_violin.html[28/05/13 14:55:32]
Modalys - Violin Bridge
Parameters
Accesses
(make-access my-violin-bridge
(const -1) 'base) ;;; left foot
(make-access my-violin-bridge
(const 1) 'base) ;;; right foot
(make-access my-violin-bridge
(const distance) 'top-horizontal)
(make-access my-violin-bridge
(const distance) 'top-vertical)
http://support.ircam.fr/docs/Modalys/current/co/object_bridge_violin.html[28/05/13 14:55:32]
Modalys - Violin Bridge
Options
http://support.ircam.fr/docs/Modalys/current/co/object_bridge_violin.html[28/05/13 14:55:32]
Modalys - Cello Bridge
Guide Map
4. Hybrid Objects
Accesses (make-object 'cello-bridge
Connections
(m1-mass .0046)
Controllers
The Modalys Workspace (m2-mass .0059)
Finite Elements
(m12-mass .0024)
Appendix
Index (d-distance .032)
(d20-distance .011)
(h1-distance .052)
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/object_bridge_cello.html[28/05/13 14:56:04]
Modalys - Cello Bridge
(a-distance .035)
(i20-distance .026)
(d2-stiffness 716.8)
(s1-stiffness 360000)
(freq-loss 10)
(const-loss 10))
Parameters
Accesses
(make-access my-cello-bridge
(const -1) 'base) ;;; left foot
(make-access my-cello-bridge
(const 1) 'base) ;;; right foot
http://support.ircam.fr/docs/Modalys/current/co/object_bridge_cello.html[28/05/13 14:56:04]
Modalys - Cello Bridge
are used.
(make-access my-cello-bridge
(const distance) 'top-horizontal)
(make-access my-cello-bridge
(const distance) 'top-vertical)
Options
http://support.ircam.fr/docs/Modalys/current/co/object_bridge_cello.html[28/05/13 14:56:04]
Modalys - Jet Object
Guide Map
Parameters
The parameters
©IRCAM for 2013
this object are a little different from
http://support.ircam.fr/docs/Modalys/current/co/object_jet.html[28/05/13 14:56:36]
Modalys - Jet Object
regular objects:
Discussion
Accesses
'foot
'flue-exit
'labium
http://support.ircam.fr/docs/Modalys/current/co/object_jet.html[28/05/13 14:56:36]
Modalys - Jet Object
(make-point-output tube-out)
Options
There are no specific options for this object, other than its
parameters.
http://support.ircam.fr/docs/Modalys/current/co/object_jet.html[28/05/13 14:56:36]
Modalys - Single Point Object
Guide Map
Note: The three lists provided for the freq bw and amp
parameters must have the same length. If different
lengths are used, the lists are truncated to the length of
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/object_point_single.html[28/05/13 14:57:08]
Modalys - Single Point Object
Discussion
Accesses
Options
Tuning
http://support.ircam.fr/docs/Modalys/current/co/object_point_single.html[28/05/13 14:57:08]
Modalys - Single Point Object
(make-object 'single-point
http://support.ircam.fr/docs/Modalys/current/co/object_point_single.html[28/05/13 14:57:08]
Modalys - Radiator Object
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/object_radiator.html[28/05/13 14:57:39]
Modalys - Radiator Object
1) 'normal)
(make-connection 'adhere
resonator-out radiator-acc)
(make-point-output radiator-acc)
Options
There are no specific options for this object, other than its
parameters.
http://support.ircam.fr/docs/Modalys/current/co/object_radiator.html[28/05/13 14:57:39]
Modalys - Clone Object
Guide Map
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/object_clone.html[28/05/13 14:58:10]
Modalys - Save Modal Object
Guide Map
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/object_file_save.html[28/05/13 14:58:41]
Modalys - Read Modal Object
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/object_file_read.html[28/05/13 14:59:12]
Modalys - Read Modal Object
Options
http://support.ircam.fr/docs/Modalys/current/co/object_file_read.html[28/05/13 14:59:12]
Modalys - Resonance Model Object
Guide Map
Appendix
Index Accesses
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/object_point_modres.html[28/05/13 14:59:43]
Modalys - Resonance Model Object
Options
For example:
http://support.ircam.fr/docs/Modalys/current/co/object_point_modres.html[28/05/13 14:59:43]
Modalys - Piano Soundboard
Guide Map
or:
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/object_soundboard_piano.html[28/05/13 15:00:14]
Modalys - Piano Soundboard
(make-object 'read-from-file
"/mos/mod-anal/piano-
soundboard2.dat")
Parameters
Accesses
Options
Examples
http://support.ircam.fr/docs/Modalys/current/co/object_soundboard_piano.html[28/05/13 15:00:14]
Modalys - Finite Element
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/object_finite_element.html[28/05/13 15:00:46]
Modalys - Finite Element
(make-object 'finite-element
(mesh my-mesh)
(block my-sub-mesh)
(modes 40)
(density 7800)
(young 2e11)
(poisson .3)
(freq-loss 1)
(const-loss 1))
Parameters
http://support.ircam.fr/docs/Modalys/current/co/object_finite_element.html[28/05/13 15:00:46]
Modalys - Finite Element
Accesses
'normal
'trans0
'trans1
Options
http://support.ircam.fr/docs/Modalys/current/co/object_finite_element.html[28/05/13 15:00:46]
Modalys - Object Utilities
Guide Map
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/ObjectUtilities.html[28/05/13 15:01:17]
Modalys - Set Object Pitch
Guide Map
i. Freeze Object
j. Unfreeze Object or:
k. Save Modal Object
4. Hybrid Objects
Accesses (set-pitch object_reference
Connections
parameter_string controller)
Controllers
The Modalys Workspace Parameters
Finite Elements The (set pitch ... ) function requires the following
Appendix arguments:
Index
object_reference: name of the object on which
the access will be located.
parameter_string: the physical parameter which
will be modified to tune the object.
value, controller: a numerical value or a Modalys
controller used to determine the pitch (in Hz).
Discussion
'density
'length
'mass
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/object_pitch_set.html[28/05/13 15:01:48]
Modalys - Set Object Pitch
'radius
'size
'stiffness
'tension
'thickness
'young
Options
Retro-Compatibility
(with-pitch-adjustment
parameter_string value
object_reference)
http://support.ircam.fr/docs/Modalys/current/co/object_pitch_set.html[28/05/13 15:01:48]
Modalys - Set Mode Freq
Guide Map
i. Freeze Object
j. Unfreeze Object or:
k. Save Modal Object
4. Hybrid Objects
Accesses (set-mode-freq object_reference
Connections
mode_number controller)
Controllers
The Modalys Workspace Parameters
Finite Elements The (set-mode-freq ... ) function requires three
Appendix arguments:
Index
object_reference: name of the object whose
specified mode frequency will be controlled.
mode_number: the mode number whose pitch will
be altered (starting from mode 0)
value, controller: a numerical value or a Modalys
controller used to determine the pitch of the given
mode(in Hz).
Discussion
http://support.ircam.fr/docs/Modalys/current/co/object_mode_freq_setone.html[28/05/13 15:02:20]
Modalys - Set Mode Freq
(list 1 (* 1.9
orig-freq-mode0))
(list 2 orig-
freq-mode0))))
Options
Retro-Compatibility
(set-mode-freq! object_reference
mode_number value)
The older function basically did the same thing without the
convenience of optionally using a controller), so any older
Modalys scripts using it should be updated to use the new
syntax (without the exclamation point).
http://support.ircam.fr/docs/Modalys/current/co/object_mode_freq_setone.html[28/05/13 15:02:20]
Modalys - Set Mode Loss
Guide Map
i. Freeze Object
j. Unfreeze Object or:
k. Save Modal Object
4. Hybrid Objects
Accesses (set-mode-loss object_reference
Connections
mode_number controller)
Controllers
The Modalys Workspace Parameters
Finite Elements The (set-mode-loss ... ) function requires three
Appendix arguments:
Index
object_reference: name of the object whose
specified mode's loss coefficient will be modified.
mode_number: the mode number whose loss
coefficient will be altered (starting from mode 0)
value, controller: a numerical value or a Modalys
controller used to determine the loss coefficient of
the given mode.
Discussion
http://support.ircam.fr/docs/Modalys/current/co/object_mode_loss_setone.html[28/05/13 15:02:51]
Modalys - Set Mode Loss
(list 1 (* 0.5
orig-loss-mode0))
(list 2 orig-
loss-mode0))))
Options
Retro-Compatibility
(set-mode-loss! object_reference
mode_number value)
See Also
The older function basically did the same thing without the
convenience of optionally using a controller), so any older
Modalys scripts using it should be updated to use the new
syntax (without the exclamation point).
http://support.ircam.fr/docs/Modalys/current/co/object_mode_loss_setone.html[28/05/13 15:02:51]
Modalys - Attach Mode Controllers
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/object_mode_controllers.html[28/05/13 15:03:23]
Modalys - Attach Mode Controllers
Discussion
Options
Retro-Compatibility
(attach-controller ... )
See Also
The older function basically did the same thing without the
convenience of the additional amplitude controller), so any
older Modalys scripts using it should be updated to use
the new syntax.
http://support.ircam.fr/docs/Modalys/current/co/object_mode_controllers.html[28/05/13 15:03:23]
Modalys - Set Frequency (of All Modes)
Guide Map
i. Freeze Object
j. Unfreeze Object Parameters
k. Save Modal Object The (set-frequency ... ) function requires two arguments:
4. Hybrid Objects
object_reference: name of the object whose
Accesses
mode frequencies will be altered.
Connections
controller: a multi-dimensional controller used to
Controllers
determine the frequency of the object's modes.
The Modalys Workspace
Finite Elements The number of dimensions in the controller should
Appendix correspond to the number of modes in the object, or the
Index remaining mode frequencies will be set to zero.
Discussion
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/object_mode_freq_setall.html[28/05/13 15:03:55]
Modalys - Set Frequency (of All Modes)
Options
http://support.ircam.fr/docs/Modalys/current/co/object_mode_freq_setall.html[28/05/13 15:03:55]
Modalys - Set Loss (of All Modes)
Guide Map
i. Freeze Object
j. Unfreeze Object Parameters
k. Save Modal Object The (set-loss ... ) function requires two arguments:
4. Hybrid Objects
object_reference: name of the object whose
Accesses
mode loss coefficients will be altered.
Connections
controller: a multi-dimensional controller used to
Controllers
determine the frequency of the object's modes.
The Modalys Workspace
Finite Elements The number of dimensions in the controller should
Appendix correspond to the number of modes in the object, or the
Index remaining mode losses will be set to zero.
Discussion
http://support.ircam.fr/docs/Modalys/current/co/object_mode_loss_setall.html[28/05/13 15:04:27]
Modalys - Set Loss (of All Modes)
Options
http://support.ircam.fr/docs/Modalys/current/co/object_mode_loss_setall.html[28/05/13 15:04:27]
Modalys - Set Amplitude (of All Modes)
Guide Map
i. Freeze Object
j. Unfreeze Object Parameters
k. Save Modal Object The (set-amplitude ... ) function requires two arguments:
4. Hybrid Objects
object_reference: name of the object whose
Accesses
modes' relative amplitudes will be altered.
Connections
controller: a multi-dimensional controller used to
Controllers
determine the frequency of the object's modes.
The Modalys Workspace
Finite Elements The number of dimensions in the controller should
Appendix correspond to the number of modes in the object, or the
Index remaining mode losses will be set to zero.
Discussion
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/object_mode_amp_setall.html[28/05/13 15:04:58]
Modalys - Set Amplitude (of All Modes)
Options
http://support.ircam.fr/docs/Modalys/current/co/object_mode_amp_setall.html[28/05/13 15:04:58]
Modalys - Get Object Info
Guide Map
i. Freeze Object
j. Unfreeze Object or:
k. Save Modal Object
4. Hybrid Objects
Accesses (get-info data_type
Connections
object_reference mode_number )
Controllers
The Modalys Workspace or:
Finite Elements
Appendix
Index (get-info data_type
object_reference mode_number
point_number)
or:
Parameters
http://support.ircam.fr/docs/Modalys/current/co/object_info_get.html[28/05/13 15:05:29]
Modalys - Get Object Info
Modal Information
'num-modes
'num-points
'mode-frequency
'mode-loss
'energy
'mode-shape
Physical Information
length
width
thickness
radius
tension
stiffness
density
young
poisson
http://support.ircam.fr/docs/Modalys/current/co/object_info_get.html[28/05/13 15:05:29]
Modalys - Get Object Info
air-density
air-elasticity
rho
celerity
An example:
Options
Retro-Compatibility
(get-info 'physical
object_reference data_type)
http://support.ircam.fr/docs/Modalys/current/co/object_info_get.html[28/05/13 15:05:29]
Modalys - Freeze Object
Guide Map
...
(destroy-connection c)
(freeze-object h)
http://support.ircam.fr/docs/Modalys/current/co/object_calc_freeze.html[28/05/13 15:06:00]
Modalys - Freeze Object
(freeze-object my-hammer)
(unfreeze-object my-hammer)
Options
http://support.ircam.fr/docs/Modalys/current/co/object_calc_freeze.html[28/05/13 15:06:00]
Modalys - Unfreeze Object
Guide Map
Accesses
Connections Discussion
Controllers Unfreezes an object previously frozen by (freeze-object ...
The Modalys Workspace ). See that function's reference page for more information.
Finite Elements
Appendix
Index Options
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/object_calc_unfreeze.html[28/05/13 15:06:31]
Modalys - Save Modal Object
Guide Map
Options
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/object_file_save_1.html[28/05/13 15:07:03]
Modalys - Hybrid Objects
Guide Map
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/ObjectHybrids.html[28/05/13 15:07:34]
Modalys - Melt-Hybrid Object
Guide Map
(make-object 'melt-hybrid
object_reference1
object_reference2 controller)
Parameters
Accesses
http://support.ircam.fr/docs/Modalys/current/co/object_hybrid_melt.html[28/05/13 15:08:06]
Modalys - Melt-Hybrid Object
http://support.ircam.fr/docs/Modalys/current/co/object_hybrid_melt.html[28/05/13 15:08:06]
Modalys - Melt-Hybrid Object
Options
http://support.ircam.fr/docs/Modalys/current/co/object_hybrid_melt.html[28/05/13 15:08:06]
Modalys - Mix-Hybrid Object
Guide Map
(make-object 'mix-hybrid
object_reference1
object_reference2 controller)
Parameters
Accesses
http://support.ircam.fr/docs/Modalys/current/co/object_hybrid_mix.html[28/05/13 15:08:37]
Modalys - Mix-Hybrid Object
http://support.ircam.fr/docs/Modalys/current/co/object_hybrid_mix.html[28/05/13 15:08:37]
Modalys - Mix-Hybrid Object
Options
http://support.ircam.fr/docs/Modalys/current/co/object_hybrid_mix.html[28/05/13 15:08:37]
Modalys - Tri-Hybrid Object
Guide Map
Parameters
Discussion
http://support.ircam.fr/docs/Modalys/current/co/object_hybrid_tri.html[28/05/13 15:09:08]
Modalys - Tri-Hybrid Object
Accesses
http://support.ircam.fr/docs/Modalys/current/co/object_hybrid_tri.html[28/05/13 15:09:08]
Modalys - Tri-Hybrid Object
Options
http://support.ircam.fr/docs/Modalys/current/co/object_hybrid_tri.html[28/05/13 15:09:08]
Modalys - Standard Accesses
Guide Map
Controllers
Directions of Movement
©IRCAM
'trans0 - transversal
2013 along the X axis - used for
http://support.ircam.fr/docs/Modalys/current/co/access_regular.html[28/05/13 15:09:39]
Modalys - Standard Accesses
Options
Decoded Accesses
http://support.ircam.fr/docs/Modalys/current/co/access_regular.html[28/05/13 15:09:39]
Modalys - Standard Accesses
or:
Shared Accesses
http://support.ircam.fr/docs/Modalys/current/co/access_regular.html[28/05/13 15:09:39]
Modalys - Using Compiled Accesses
Guide Map
(list x-or-
radius y-or-angle)
...etc... )
(make-object ... ))
Parameters
Options
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/access_compiled.html[28/05/13 15:10:10]
Modalys - Using Compiled Accesses
to refer to the second, etc. If you like, you can ask for an
access which is a weighted combination of the three
points by writing:
http://support.ircam.fr/docs/Modalys/current/co/access_compiled.html[28/05/13 15:10:10]
Modalys - Hybrid Accesses
Guide Map
Discussion
http://support.ircam.fr/docs/Modalys/current/co/access_hybrid.html[28/05/13 15:10:41]
Modalys - Hybrid Accesses
After you have created all the accesses you will need,
you can then create the hybrid object. Doing this will
cause the original two objects to “evaporate”:
Options
Considerations
Retro-Compatibility
http://support.ircam.fr/docs/Modalys/current/co/access_hybrid.html[28/05/13 15:10:41]
Modalys - Hybrid Accesses
http://support.ircam.fr/docs/Modalys/current/co/access_hybrid.html[28/05/13 15:10:41]
Modalys - Tri-Hybrid Accesses
Guide Map
Parameters
Discussion
Options
Considerations
http://support.ircam.fr/docs/Modalys/current/co/access_tri_hybrid.html[28/05/13 15:11:12]
Modalys - Tri-Hybrid Accesses
http://support.ircam.fr/docs/Modalys/current/co/access_tri_hybrid.html[28/05/13 15:11:12]
Modalys - Get Access Info
Guide Map
Parameters
Controllers
'speed
'position
'force
'admittance
http://support.ircam.fr/docs/Modalys/current/co/access_info_get.html[28/05/13 15:11:43]
Modalys - Get Access Info
(make-controller 'foreign-call 1
0
(vset outs 0
(get-info 'speed access-ref)))
'())
Options
http://support.ircam.fr/docs/Modalys/current/co/access_info_get.html[28/05/13 15:11:43]
Modalys - Force Connection
Guide Map
Index
Discussion
http://support.ircam.fr/docs/Modalys/current/co/connection_force.html[28/05/13 15:12:14]
Modalys - Force Connection
Options
http://support.ircam.fr/docs/Modalys/current/co/connection_force.html[28/05/13 15:12:14]
Modalys - Speed Connection
Guide Map
Discussion
Options
http://support.ircam.fr/docs/Modalys/current/co/connection_speed.html[28/05/13 15:12:45]
Modalys - Speed Connection
http://support.ircam.fr/docs/Modalys/current/co/connection_speed.html[28/05/13 15:12:45]
Modalys - Position Connection
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/connection_position.html[28/05/13 15:13:16]
Modalys - Position Connection
Options
http://support.ircam.fr/docs/Modalys/current/co/connection_position.html[28/05/13 15:13:16]
Modalys - Acoustic Hole Connection
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/connection_hole.html[28/05/13 15:13:47]
Modalys - Acoustic Hole Connection
Note also that If the hole is too large, the system may
become unstable and will not produce sound.
Options
(make-object 'closed-open-tube
(modes 4)
(length 2e-3)
(radius0 5e-3)
(radius1 5e-3)
(freq-loss 10) )
See Also
http://support.ircam.fr/docs/Modalys/current/co/connection_hole.html[28/05/13 15:13:47]
Modalys - Acoustic Hole Connection
http://support.ircam.fr/docs/Modalys/current/co/connection_hole.html[28/05/13 15:13:47]
Modalys - Adhere Connection
Guide Map
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/connection_adhere.html[28/05/13 15:14:18]
Modalys - Adhere Connection
Options
http://support.ircam.fr/docs/Modalys/current/co/connection_adhere.html[28/05/13 15:14:18]
Modalys - Strike Connection
Guide Map
Discussion
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/connection_strike.html[28/05/13 15:14:49]
Modalys - Strike Connection
Options
Retro-Compatibility
See Also
http://support.ircam.fr/docs/Modalys/current/co/connection_strike.html[28/05/13 15:14:49]
Modalys - Pluck Connection
Guide Map
Discussion
http://support.ircam.fr/docs/Modalys/current/co/connection_pluck.html[28/05/13 15:15:21]
Modalys - Pluck Connection
(small-mass .001)
(large-mass .01)
(stiffness0 100000)
(stiffness1 100000)
(freq-loss0 100)
(freq-loss1 100)
(const-loss0 0)
(const-loss1 0) ))
Options
Retro-Compatibility
http://support.ircam.fr/docs/Modalys/current/co/connection_pluck.html[28/05/13 15:15:21]
Modalys - Pluck Connection
http://support.ircam.fr/docs/Modalys/current/co/connection_pluck.html[28/05/13 15:15:21]
Modalys - Spring Connection
Guide Map
Discussion
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/connection_spring.html[28/05/13 15:15:52]
Modalys - Spring Connection
Options
http://support.ircam.fr/docs/Modalys/current/co/connection_spring.html[28/05/13 15:15:52]
Modalys - Reed Connection
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/connection_reed.html[28/05/13 15:16:22]
Modalys - Reed Connection
The breath pressure of the air just before hitting the reed.
Typical values: from 0 to 50000 Pa
For the air density controller, the usual value for the
volumic mass of air is 1.2 kg / m^3, however you might
need to play with this if you wish to blow into Modalys
objects other than air columns (the various tubes).
Typical values for the reed area controller are from 1e-14
to 1e-3 m^2. This value is unrelated whatsoever to the
physical values used when defining the reed object. It is
up to you to match them or not.
Discussion
Options
sqrt(k/m)/2pi
or in Lisp:
http://support.ircam.fr/docs/Modalys/current/co/connection_reed.html[28/05/13 15:16:22]
Modalys - Reed Connection
(small-mass .000002)
(large-mass .000002)
(stiffness0 200)
(const-loss0 60)
(freq-loss0 260) ))
(mass .000002)
(stiffness 200)
(const-loss 60)
(freq-loss 260)))
http://support.ircam.fr/docs/Modalys/current/co/connection_reed.html[28/05/13 15:16:22]
Modalys - Reed Connection
(modes 5)
(length0 .7e-2)
(length1 2e-2)
(thickness 2e-5)
(density 700)
(freq-loss 400)
(const-loss 200) ))
Retro-Compatibility
http://support.ircam.fr/docs/Modalys/current/co/connection_reed.html[28/05/13 15:16:22]
Modalys - Felt Hammer Connection
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/connection_felt.html[28/05/13 15:16:53]
Modalys - Felt Hammer Connection
Discussion
Options
http://support.ircam.fr/docs/Modalys/current/co/connection_felt.html[28/05/13 15:16:53]
Modalys - Mono-Fingerboard Connection
Guide Map
Parameters
http://support.ircam.fr/docs/Modalys/current/co/connection_fingerboard_mono.html[28/05/13 15:27:54]
Modalys - Mono-Fingerboard Connection
Discussion
Options
http://support.ircam.fr/docs/Modalys/current/co/connection_fingerboard_mono.html[28/05/13 15:27:54]
Modalys - Normalised Valve Connection
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/connection_valve_normalised.html[28/05/13 15:28:38]
Modalys - Normalised Valve Connection
Discussion
Options
http://support.ircam.fr/docs/Modalys/current/co/connection_valve_normalised.html[28/05/13 15:28:38]
Modalys - Normalised Leaky Valve Connection
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/connection_valve_leaky_normalised.html[28/05/13 15:29:27]
Modalys - Normalised Leaky Valve Connection
Discussion
Options
http://support.ircam.fr/docs/Modalys/current/co/connection_valve_leaky_normalised.html[28/05/13 15:29:27]
Modalys - Bow Connection
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/connection_bow.html[28/05/13 15:30:12]
Modalys - Bow Connection
Discussion
http://support.ircam.fr/docs/Modalys/current/co/connection_bow.html[28/05/13 15:30:12]
Modalys - Bow Connection
Options
Retro-Compatibility
http://support.ircam.fr/docs/Modalys/current/co/connection_bow.html[28/05/13 15:30:12]
Modalys - Bi-Fingerboard Connection
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/connection_fingerboard_bi.html[28/05/13 15:30:43]
Modalys - Bi-Fingerboard Connection
Discussion
Options
http://support.ircam.fr/docs/Modalys/current/co/connection_fingerboard_bi.html[28/05/13 15:30:43]
Modalys - Valve Connection
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/connection_valve.html[28/05/13 15:31:15]
Modalys - Valve Connection
Typical values for the surface area of the under part of the
valve are from 1e-14 to 1e-3 m^2.
Typical values for the surface area of the front part of the
valve are also from 1e-14 to 1e-3 m^2.
Discussion
Options
http://support.ircam.fr/docs/Modalys/current/co/connection_valve.html[28/05/13 15:31:15]
Modalys - Leaky Valve Connection
Guide Map
Parameters
http://support.ircam.fr/docs/Modalys/current/co/connection_valve_leaky.html[28/05/13 15:31:47]
Modalys - Leaky Valve Connection
Typical values for the surface area of the under part of the
valve are from 1e-14 to 1e-3 m^2.
Typical values for the surface area of the front part of the
valve are also from 1e-14 to 1e-3 m^2.
Discussion
http://support.ircam.fr/docs/Modalys/current/co/connection_valve_leaky.html[28/05/13 15:31:47]
Modalys - Leaky Valve Connection
Options
http://support.ircam.fr/docs/Modalys/current/co/connection_valve_leaky.html[28/05/13 15:31:47]
Modalys - Induction Connection
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/connection_induction.html[28/05/13 15:32:19]
Modalys - Induction Connection
Parameters
Discussion
Also note that the induction connection causes the resonating body to
vibrate at twice the frequency of the input signal, or one octave higher.
http://support.ircam.fr/docs/Modalys/current/co/connection_induction.html[28/05/13 15:32:19]
Modalys - Induction Connection
(list 2 0.001)
(list 5 0.008))))
http://magneticpiano.com
http://www.perbloland.com
http://support.ircam.fr/docs/Modalys/current/co/connection_induction.html[28/05/13 15:32:19]
Modalys - Labium Connection
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/connection_labium.html[28/05/13 15:32:52]
Modalys - Labium Connection
Discussion
(make-point-output tube-out)
Options
Noise Controller
http://support.ircam.fr/docs/Modalys/current/co/connection_labium.html[28/05/13 15:32:52]
Modalys - Destroy Connection
Guide Map
...
©IRCAM 2013
(destroy-connection my-connection)
http://support.ircam.fr/docs/Modalys/current/co/connection_destroy.html[28/05/13 15:33:25]
Modalys - Destroy Connection
(run 1)
Options
http://support.ircam.fr/docs/Modalys/current/co/connection_destroy.html[28/05/13 15:33:25]
Modalys - Get Connection Info
Guide Map
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/connection_info_get.html[28/05/13 15:34:05]
Modalys - Get Connection Info
'speed-horizontal
'speed-vertical
'position-horizontal
'position-vertical
'force-horizontal
'force-vertical
Options
http://support.ircam.fr/docs/Modalys/current/co/connection_info_get.html[28/05/13 15:34:05]
Modalys - Constant Controller
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/controller_constant.html[28/05/13 15:34:54]
Modalys - Constant Controller
Discussion
(make-controller 'constant 3 50 60
70)
or:
(const 50 60 70)
or:
http://support.ircam.fr/docs/Modalys/current/co/controller_constant.html[28/05/13 15:34:54]
Modalys - Constant Controller
(const 0.36)
Options
http://support.ircam.fr/docs/Modalys/current/co/controller_constant.html[28/05/13 15:34:54]
Modalys - Envelope Controller
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/controller_envelope.html[28/05/13 15:35:44]
Modalys - Envelope Controller
Discussion
(make-controller 'envelope 1
'( (0 0.0)
(0.2 1.0)
(0.4 0.7)
(1.2 0.7)
(2 0) ) )
Options
http://support.ircam.fr/docs/Modalys/current/co/controller_envelope.html[28/05/13 15:35:44]
Modalys - Access Speed Controller
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/controller_access_speed.html[28/05/13 15:36:33]
Modalys - Access Speed Controller
Options
Retro-Compatibility
(make-controller 'foreign-call 1
0
(vset outs 0
(get-info 'speed access-ref)))
'())
http://support.ircam.fr/docs/Modalys/current/co/controller_access_speed.html[28/05/13 15:36:33]
Modalys - Access Position Controller
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/controller_access_position.html[28/05/13 15:37:17]
Modalys - Access Position Controller
Options
Retro-Compatibility
(make-controller 'foreign-call 1
0
(vset outs 0
(get-info 'position access-ref)))
'())
http://support.ircam.fr/docs/Modalys/current/co/controller_access_position.html[28/05/13 15:37:17]
Modalys - Access Force Controller
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/controller_access_force.html[28/05/13 15:37:50]
Modalys - Access Force Controller
Options
Retro-Compatibility
http://support.ircam.fr/docs/Modalys/current/co/controller_access_force.html[28/05/13 15:37:50]
Modalys - Connection State Controller
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/controller_connection_state.html[28/05/13 15:38:21]
Modalys - Connection State Controller
Options
http://support.ircam.fr/docs/Modalys/current/co/controller_connection_state.html[28/05/13 15:38:21]
Modalys - Last Sample Controller
Guide Map
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/controller_sample_last.html[28/05/13 15:38:54]
Modalys - Last Sample Controller
Options
http://support.ircam.fr/docs/Modalys/current/co/controller_sample_last.html[28/05/13 15:38:54]
Modalys - Sound File Controller
Guide Map
1. Constant Controller Outputs the the signal read from a sound file (or portion of a
2. Envelope Controller sound file) as a controller, optionally changing its sampling rate.
3. Access Speed Controller
4. Access Position Controller
5. Access Force Controller
6. Connection State Controller
7. Last Sample Controller
8. Sound File Controller
9. MIDI File Controller
10. Dynamic Controller
11. Send Message
12. Set Breakpoint
13. Signal Controller
14. Scale Controller
15. Arithmetic Controller
(make-controller 'sound-file ... )
16. Expression Controller
17. Foreign-Call Controller Lisp Syntax and Default Values
18. Sine Controller
The 'sound-file controller can be created using the
19. Random Controller
following Lisp syntax:
20. Band-Limited Noise Controller
21. Noise (Band-Limited Impulse)
Controller (make-controller 'sound-file
22. Delay Controller
dimension period samplerate
23. Bilinear (First Order IIR) Filter
filename offset length taps)
24. Biquadratic (Second Order IIR)
Filter
25. Constant Second Order Parameters
(Bandpass) Filter
26. Variable Second Order
The 'sound-file controller takes seven arguments:
(Bandpass) Filter
dimension: number of input and output channels.
27. Dimension-Mapping Controller
period: the time between the controller's value
28. Sum Controller
updates. If zero is given then it updates every
29. Spread Controller
sample.
30. Get Controller Info
samplerate: controller specifying the sample rate
The Modalys Workspace in Hz.
Finite Elements filename: pathname of sound file to be read. (in
Appendix quotes.)
Index offset: offset form the beginning of the sound file,
in seconds.
length: length of sound to be read from file, in
seconds
©IRCAM
taps: integer2013
number of taps used in the
http://support.ircam.fr/docs/Modalys/current/co/controller_file_sound.html[28/05/13 15:39:26]
Modalys - Sound File Controller
Discussion
http://support.ircam.fr/docs/Modalys/current/co/controller_file_sound.html[28/05/13 15:39:26]
Modalys - Sound File Controller
(const 44100)
"Examples/sound/fl.taps.aiff"
0 1 30))
A stereo sound file should be dealt with this way (this also
shows an example of an absolute path):
(make-controller 'sound-file 2 0
(const 44100)
"/my-disk/my-dir/my-
sound.aiff"
0 2 30))
Options
File Pathnames
http://support.ircam.fr/docs/Modalys/current/co/controller_file_sound.html[28/05/13 15:39:26]
Modalys - MIDI File Controller
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/controller_file_midi.html[28/05/13 15:39:58]
Modalys - MIDI File Controller
Discussion
'pitchbend
'aftertouch
'noteon
'noteoff
'lastnote
'lastvelocity
http://support.ircam.fr/docs/Modalys/current/co/controller_file_midi.html[28/05/13 15:39:58]
Modalys - MIDI File Controller
Options
File Pathnames
Retro-Compatibility
http://support.ircam.fr/docs/Modalys/current/co/controller_file_midi.html[28/05/13 15:39:58]
Modalys - Dynamic Controller
Guide Map
As always,©IRCAM
a sampling
2013period of 0 indicates that the
http://support.ircam.fr/docs/Modalys/current/co/controller_dynamic.html[28/05/13 15:40:29]
Modalys - Dynamic Controller
Discussion
(send-message "env1" 1) ;
controller will jump to a value of
http://support.ircam.fr/docs/Modalys/current/co/controller_dynamic.html[28/05/13 15:40:29]
Modalys - Dynamic Controller
(run 0.5)
(listen-ip-port 4000)
(run-real-time)
Options
Retro-Compatibility
(set-breakpoint
name_of_dynamic_controller
http://support.ircam.fr/docs/Modalys/current/co/controller_dynamic.html[28/05/13 15:40:29]
Modalys - Dynamic Controller
(list
time_to_reach_destination value
value ... ))
(set-breakpoint my-ctl 0 1) ;
controller will jump to a value of
1 immediately (since ramp time is
set to 0)
(run 0.5)
http://support.ircam.fr/docs/Modalys/current/co/controller_dynamic.html[28/05/13 15:40:29]
Modalys - Send Message
Guide Map
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/controller_dynamic_message.html[28/05/13 15:41:01]
Modalys - Set Breakpoint
Guide Map
Options
http://support.ircam.fr/docs/Modalys/current/co/controller_dynamic_breakpoint.html[28/05/13 15:41:32]
Modalys - Set Breakpoint
http://support.ircam.fr/docs/Modalys/current/co/controller_dynamic_breakpoint.html[28/05/13 15:41:32]
Modalys - Signal Controller
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/controller_signal.html[28/05/13 15:42:03]
Modalys - Signal Controller
Options
http://support.ircam.fr/docs/Modalys/current/co/controller_signal.html[28/05/13 15:42:03]
Modalys - Scale Controller
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/controller_scale.html[28/05/13 15:42:35]
Modalys - Scale Controller
Discussion
http://support.ircam.fr/docs/Modalys/current/co/controller_scale.html[28/05/13 15:42:35]
Modalys - Scale Controller
Options
http://support.ircam.fr/docs/Modalys/current/co/controller_scale.html[28/05/13 15:42:35]
Modalys - Arithmetic Controller
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/controller_arithmetic.html[28/05/13 15:43:07]
Modalys - Arithmetic Controller
Discussion
http://support.ircam.fr/docs/Modalys/current/co/controller_arithmetic.html[28/05/13 15:43:07]
Modalys - Arithmetic Controller
Options
http://support.ircam.fr/docs/Modalys/current/co/controller_arithmetic.html[28/05/13 15:43:07]
Modalys - Expression Controller
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/controller_expression.html[28/05/13 15:43:39]
Modalys - Expression Controller
Discussion
(make-controller 'expression 1 0
"in(1,1)*in(2,1)" my-ctl1 my-ctl2)
(make-controller 'expression 1 0
"a=in(1,1); b=in(2,1); a*b" my-
ctl1 my-ctl2)
http://support.ircam.fr/docs/Modalys/current/co/controller_expression.html[28/05/13 15:43:39]
Modalys - Expression Controller
'expression 1 0
"0.5+(0.5*cos((in(1,1)+0.5)*pi*2))"
my-ramp))
Options
Operations
+
-
*
/
exponential functions:
sqrt(x)
power(x,n)
exp(x)
log(x,n)
log10(x)
trigonometric functions:
cos(x)
sin(x)
tan(x)
acos(x)
asin(x)
atan(x)
sinh(x)
cosh(x)
tanh(x)
http://support.ircam.fr/docs/Modalys/current/co/controller_expression.html[28/05/13 15:43:39]
Modalys - Expression Controller
other functions:
abs(x)
min(x,y)
max(x,y)
sign(x)
comparison:
<
>
<=
>=
logical operators:
and
or
conditional statements:
constants
pi
a = 1; b = a+1;
in(1,1)
in(1)
get_info('sample-rate')
get_info('mode-frequency', in(1), 0)
[ expression_1 , expression_2 ]
cosine of an input-controller:
"cos(in(1,1))"
http://support.ircam.fr/docs/Modalys/current/co/controller_expression.html[28/05/13 15:43:39]
Modalys - Expression Controller
"max(in(1,1),in(1,2))"
"max(-1,min(1,in(1,1)))"
Also, within the Lisp environment, you could also use the
Lisp (format ...) function to generate expressions for the
expression controller:
http://support.ircam.fr/docs/Modalys/current/co/controller_expression.html[28/05/13 15:43:39]
Modalys - Foreign-Call Controller
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/controller_foreign_call.html[28/05/13 15:44:12]
Modalys - Foreign-Call Controller
Discussion
(make-controller 'foreign-call 1
0
(foreign-callable (lambda
(input output)
(vset output 0
(* (vget input 0 0) (vget input 1
0))) ))
(make-controller 'expression 1 0
"in(1,1)*in(2,1)" my-ctl1 my-ctl2)
(make-controller 'foreign-call 1
0
(foreign-callable (lambda
(ins outs)
(vset outs 0
(get-info 'speed access-ref)) ))
'())
http://support.ircam.fr/docs/Modalys/current/co/controller_foreign_call.html[28/05/13 15:44:12]
Modalys - Foreign-Call Controller
Options
(vget inputs 0 0)
This gets the first dimension of the first input - both are
numbered starting from 0. So, if you type:
http://support.ircam.fr/docs/Modalys/current/co/controller_foreign_call.html[28/05/13 15:44:12]
Modalys - Foreign-Call Controller
(vget inputs 0 1)
(vget inputs 1 0)
you get the first dimension of the second input, and so on.
Therefore:
means that the update rule is: "get the first dimension of
the first input controller; then, get the first dimension of the
second input controller. Multiply them together, and stick
the result in the first dimension of my own output box."
Retro-Compatibility
(make-controller 'scheme 1 0
(lambda ()
http://support.ircam.fr/docs/Modalys/current/co/controller_foreign_call.html[28/05/13 15:44:12]
Modalys - Foreign-Call Controller
(vset 0 (* (vget
0 0) (vget 1 0))) )
http://support.ircam.fr/docs/Modalys/current/co/controller_foreign_call.html[28/05/13 15:44:12]
Modalys - Sine Controller
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/controller_sine.html[28/05/13 15:44:44]
Modalys - Sine Controller
Discussion
Options
http://support.ircam.fr/docs/Modalys/current/co/controller_sine.html[28/05/13 15:44:44]
Modalys - Random Controller
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/controller_noise_random.html[28/05/13 15:45:16]
Modalys - Random Controller
Options
http://support.ircam.fr/docs/Modalys/current/co/controller_noise_random.html[28/05/13 15:45:16]
Modalys - Band-Limited Noise Controller
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/controller_noise_bandlimited.html[28/05/13 15:45:48]
Modalys - Band-Limited Noise Controller
Note also that using a higher value for the filter taps
parameter will result in sample values that slightly exceed
the -1 to 1 range. The random values themselves are
within range, but bandlimiting and smoothing process will
cause them to exceed these limits slightly.
Discussion
Options
http://support.ircam.fr/docs/Modalys/current/co/controller_noise_bandlimited.html[28/05/13 15:45:48]
Modalys - Band-Limited Noise Controller
http://support.ircam.fr/docs/Modalys/current/co/controller_noise_bandlimited.html[28/05/13 15:45:48]
Modalys - Noise (Band-Limited Impulse) Controller
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/controller_noise_noise.html[28/05/13 15:46:20]
Modalys - Noise (Band-Limited Impulse) Controller
value.
outmax: controller specifying the maximum output
value.
taps: integer number of taps used in the
smoothing filter (an even integer not less than 4).
Note also that using a higher value for the filter taps
parameter may sometimes result in controller values that
slightly exceed the -1 to 1 range. The random values
themselves are within range, but bandlimiting and
smoothing process will cause them to exceed these limits
slightly.
Discussion
(make-controller 'noise 1 0
(make-controller
'envelope 1 '((0 0.001) (2 0.1)))
(make-controller
http://support.ircam.fr/docs/Modalys/current/co/controller_noise_noise.html[28/05/13 15:46:20]
Modalys - Noise (Band-Limited Impulse) Controller
(const -1)
(const 1))
10)
You could use the generator to create white noise like this
(the impulses will be updated every sample since the min
and max delay are zero):
(make-controller 'noise 1 0
(const 0)
(const 0)
(const -1)
(const 1))
10)
(make-controller 'noise 1 0
(const 0.1)
(const 0.1)
(const -1)
(const 1))
10)
(make-controller 'noise 1 0
(const 0.018)
(const 0.022)
(const 1)
(const 1))
http://support.ircam.fr/docs/Modalys/current/co/controller_noise_noise.html[28/05/13 15:46:20]
Modalys - Noise (Band-Limited Impulse) Controller
30)
Options
http://support.ircam.fr/docs/Modalys/current/co/controller_noise_noise.html[28/05/13 15:46:20]
Modalys - Delay Controller
Guide Map
Discussion
http://support.ircam.fr/docs/Modalys/current/co/controller_delay.html[28/05/13 15:46:52]
Modalys - Delay Controller
Options
http://support.ircam.fr/docs/Modalys/current/co/controller_delay.html[28/05/13 15:46:52]
Modalys - Bilinear (First Order IIR) Filter
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/controller_filter_bilinear.html[28/05/13 15:47:23]
Modalys - Bilinear (First Order IIR) Filter
Discussion
(setq cutoff 1)
Options
http://support.ircam.fr/docs/Modalys/current/co/controller_filter_bilinear.html[28/05/13 15:47:23]
Modalys - Biquadratic (Second Order IIR) Filter
Guide Map
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/controller_filter_biquadratic.html[28/05/13 15:47:54]
Modalys - Biquadratic (Second Order IIR) Filter
Discussion
(setq cutoff 1)
(setq Q 0.707)
(setq b0 (/ 1 (+ 1 alpha)))
(setq a1 (* b0 (- 1 cw)))
(setq a2 a0)
(setq b1 (* b0 (* -2 cw)))
(setq b2 (* b0 (- 1 alpha)))
Options
http://support.ircam.fr/docs/Modalys/current/co/controller_filter_biquadratic.html[28/05/13 15:47:54]
Modalys - Biquadratic (Second Order IIR) Filter
http://support.ircam.fr/docs/Modalys/current/co/controller_filter_biquadratic.html[28/05/13 15:47:54]
Modalys - Constant Second Order (Bandpass) Filter
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/controller_filter_bp_constant.html[28/05/13 15:48:40]
Modalys - Constant Second Order (Bandpass) Filter
Discussion
WARNING:
Options
http://support.ircam.fr/docs/Modalys/current/co/controller_filter_bp_constant.html[28/05/13 15:48:40]
Modalys - Constant Second Order (Bandpass) Filter
http://support.ircam.fr/docs/Modalys/current/co/controller_filter_bp_constant.html[28/05/13 15:48:40]
Modalys - Variable Second Order (Bandpass) Filter
Guide Map
http://support.ircam.fr/docs/Modalys/current/co/controller_filter_bp_variable.html[28/05/13 15:49:30]
Modalys - Variable Second Order (Bandpass) Filter
in Hz.
Discussion
Options
http://support.ircam.fr/docs/Modalys/current/co/controller_filter_bp_variable.html[28/05/13 15:49:30]
Modalys - Variable Second Order (Bandpass) Filter
http://support.ircam.fr/docs/Modalys/current/co/controller_filter_bp_variable.html[28/05/13 15:49:30]
Modalys - Dimension-Mapping Controller
Guide Map
Discussion
The dimension-mapping
©IRCAM 2013 controller accepts a list of
http://support.ircam.fr/docs/Modalys/current/co/controller_dimension_map.html[28/05/13 15:50:20]
Modalys - Dimension-Mapping Controller
(list sf-ctl 1
0))))
http://support.ircam.fr/docs/Modalys/current/co/controller_dimension_map.html[28/05/13 15:50:20]
Modalys - Dimension-Mapping Controller
'dimension-mapping 2
(list sf-ctl2 0
1))))
Options
http://support.ircam.fr/docs/Modalys/current/co/controller_dimension_map.html[28/05/13 15:50:20]
Modalys - Sum Controller
Guide Map
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/controller_dimension_sum.html[28/05/13 15:50:51]
Modalys - Sum Controller
http://support.ircam.fr/docs/Modalys/current/co/controller_dimension_sum.html[28/05/13 15:50:51]
Modalys - Spread Controller
Guide Map
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/controller_dimension_spread.html[28/05/13 15:51:23]
Modalys - Get Controller Info
Guide Map
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/controller_info_get.html[28/05/13 15:51:54]
Modalys - New Workspace
Guide Map
Modalys
Summary
New Workspace See also
Load Modalys Script
An Introduction to Modalys
Description Run Synthesis
Getting Started
Play Sound
Objects Clears the Modalys workspace, destroys all objects.
Accesses Stop
Connections Quit Modalys
Controllers (new)
The Modalys Workspace
Lisp Syntax and Default Values
1. New Workspace
2. Run Synthesis The (new) function can be created using the following
3. Play Sound Lisp syntax:
4. Set Message Level
5. Set Precision
(new)
6. Run Synthesis in Real-Time
7. Listen to IP Port
Parameters
8. Set Angle Mode
9. Get Version This should generally be the first command you give
10. Stop Modalys at the start of a script. It has no additional
11. Quit Modalys parameters.
12. Point Output
13. Point Input
14. Save AIFF Sound File Options
15. Save Floating-Point Sound File
16. Set Sample Rate There are no special options for this function.
17. Set Bit Depth
18. Set Number of Channels
19. Get Workspace Info
20. Get Angle Mode
21. Make Plot
22. Plot Value
23. Plot
24. Load Modalys Script
25. Load Modalys Component
26. Save Mlys Script File
27. MIDI to Frequency
28. Frequency to MIDI
Finite Elements
Appendix
Index
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/workspace_new.html[28/05/13 15:52:42]
Modalys - Run Synthesis
Guide Map
Modalys
Summary
Run Synthesis See also
Play Sound
An Introduction to Modalys
Description New Workspace
Getting Started
Stop
Objects Runs the synthesis in the current Modalys workspace.
Accesses Load Modalys Script
Connections Quit Modalys
Controllers (run ... )
The Modalys Workspace
Lisp Syntax and Default Values
1. New Workspace
2. Run Synthesis The (run ... ) function can be created using the following
3. Play Sound Lisp syntax:
4. Set Message Level
5. Set Precision
(run duration)
6. Run Synthesis in Real-Time
7. Listen to IP Port
Parameters
8. Set Angle Mode
9. Get Version The (run ... ) function takes one argument:
10. Stop
duration: the number of seconds of sound
11. Quit Modalys
Modalys will compute.
12. Point Output
13. Point Input
Discussion
14. Save AIFF Sound File
15. Save Floating-Point Sound File Note that if you run several seconds of sound, stop, and
16. Set Sample Rate then type run again, Modalys will continue calculating from
17. Set Bit Depth where you left off rather than starting again. Hence,
18. Set Number of Channels typing:
19. Get Workspace Info
20. Get Angle Mode (run 2.0)
21. Make Plot
(run 2.5)
22. Plot Value
23. Plot (run 1.5)
24. Load Modalys Script
25. Load Modalys Component
will produce a total of six seconds of sound. The
26. Save Mlys Script File
advantage of this is that you could create new objects,
27. MIDI to Frequency
destroy inactive connections, move dynamic controllers,
28. Frequency to MIDI
and other things in-between (run ... ) statements.
Finite Elements
Appendix
Index
Options
http://support.ircam.fr/docs/Modalys/current/co/workspace_run.html[28/05/13 15:53:23]
Modalys - Run Synthesis
http://support.ircam.fr/docs/Modalys/current/co/workspace_run.html[28/05/13 15:53:23]
Modalys - Play Sound
Guide Map
Modalys
Summary
Play Sound See also
New Workspace
An Introduction to Modalys
Description Load Modalys Script
Getting Started
Run Synthesis
Objects Plays the currently calculated sound.
Accesses Stop
Connections Quit Modalys
Controllers (play)
The Modalys Workspace
Lisp Syntax and Default Values
1. New Workspace
2. Run Synthesis The (play) function can be created using the following
3. Play Sound Lisp syntax:
4. Set Message Level
5. Set Precision
(play)
6. Run Synthesis in Real-Time
7. Listen to IP Port
Parameters
8. Set Angle Mode
9. Get Version The (play) function takes no additional arguments.
10. Stop
11. Quit Modalys Discussion
12. Point Output
The (play) function is entirely optional. Although generally
13. Point Input
you will want to play the sound when it is finished
14. Save AIFF Sound File calculating, you may want to write it to a file, instead, or
15. Save Floating-Point Sound File playback the sound manually from the menu. When using
16. Set Sample Rate Modalys in real-time contexts, you do not need to play the
17. Set Bit Depth sound since new samples are constantly being calculated
18. Set Number of Channels and output. Note that when (play) is inside a loop, only
19. Get Workspace Info the (play) command in the last iteration of that loop will
20. Get Angle Mode take effect.
21. Make Plot
22. Plot Value
23. Plot Options
24. Load Modalys Script
25. Load Modalys Component There are no special options for this function.
26. Save Mlys Script File
27. MIDI to Frequency See Also
28. Frequency to MIDI
Modalys Tutorial Example [examples coming soon!]
Finite Elements
Appendix
Index
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/workspace_play.html[28/05/13 15:54:12]
Modalys - Set Message Level
Guide Map
Modalys
Summary
Set Message Level See also
Set Precision
An Introduction to Modalys
Description Set Sample Rate
Getting Started
Set Bit Depth
Objects Sets the level of messages that should be shown to the user.
Accesses Set Number of
Connections
Channels
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/workspace_message_level.html[28/05/13 15:54:51]
Modalys - Set Precision
Guide Map
Modalys
Summary
Set Precision See also
Set Sample Rate
An Introduction to Modalys
Description Set Bit Depth
Getting Started
Set Number of
Objects Sets the calculation precision for computing the system.
Channels
Accesses
Connections
Set Message Level
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/workspace_precision.html[28/05/13 15:55:40]
Modalys - Run Synthesis in Real-Time
Guide Map
Modalys
Summary
Run Synthesis in Real-Time See also
Run Synthesis
An Introduction to Modalys
Description Stop
Getting Started
Objects Runs the synthesis in the current Modalys workspace.
Accesses
Connections
Controllers (run-real-time ... )
The Modalys Workspace
Lisp Syntax and Default Values
1. New Workspace
2. Run Synthesis The (run-real-time ... ) function can be created using the
3. Play Sound following Lisp syntax:
4. Set Message Level
5. Set Precision
(run-real-time duration)
6. Run Synthesis in Real-Time
7. Listen to IP Port
8. Set Angle Mode or:
9. Get Version
10. Stop
(run-real-time)
11. Quit Modalys
12. Point Output
Parameters
13. Point Input
14. Save AIFF Sound File The (run-real-time ... ) function takes one optional
15. Save Floating-Point Sound File argument:
16. Set Sample Rate
duration: the number of seconds of sound
17. Set Bit Depth
Modalys will compute.
18. Set Number of Channels
19. Get Workspace Info
Discussion
20. Get Angle Mode
21. Make Plot This command is similar to the (run) command, except
22. Plot Value that it allows Modalys to run in real-time, either indefinitely
23. Plot (in which case the user can stop the synthesis from the
24. Load Modalys Script real-time progress bar displayed by ModaLisp program),
25. Load Modalys Component
or for a given amount of time.
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/workspace_run_realtime.html[28/05/13 15:56:29]
Modalys - Listen to IP Port
Guide Map
Modalys
Summary
Listen to IP Port See also
Run Synthesis in Real-
An Introduction to Modalys Time
Description
Getting Started Send Message
Objects Runs the synthesis in the current Modalys workspace.
Dynamic Controller
Accesses
Connections
Controllers (listen-ip-port ... )
The Modalys Workspace
Lisp Syntax and Default Values
1. New Workspace
2. Run Synthesis The (listen-ip-port ... ) function can be created using the
3. Play Sound following Lisp syntax:
4. Set Message Level
5. Set Precision
(listen-ip-port port_number)
6. Run Synthesis in Real-Time
7. Listen to IP Port
Parameters
8. Set Angle Mode
9. Get Version The (listen-ip-port ... ) function takes one argument:
10. Stop
port_number: the number of the IP port to listen
11. Quit Modalys
to for incoming OSC messages.
12. Point Output
13. Point Input
Discussion
14. Save AIFF Sound File
15. Save Floating-Point Sound File This command can be used to set an IP port from which
16. Set Sample Rate incoming OSC messages will be sent to dynamic
17. Set Bit Depth controllers when running Modalys in real-time. For
18. Set Number of Channels example to listen to port 4000, you would use:
19. Get Workspace Info
20. Get Angle Mode (listen-ip-port 4000)
21. Make Plot
(run-real-time)
22. Plot Value
23. Plot
24. Load Modalys Script
25. Load Modalys Component Options
26. Save Mlys Script File
27. MIDI to Frequency There are no special options for this function.
28. Frequency to MIDI
Finite Elements
Appendix
Index
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/workspace_port_ip.html[28/05/13 15:57:18]
Modalys - Set Angle Mode
Guide Map
Modalys
Summary
Set Angle Mode See also
Get Angle Mode
An Introduction to Modalys
Description Get Workspace
Getting Started Information
Objects Set the kind of numbers you will be using to define angles
Set Message Level
Accesses (degrees or radians).
Connections
Set Precision
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/workspace_mode_angle_set.html[28/05/13 15:57:59]
Modalys - Get Version
Guide Map
Modalys
Summary
Get Version See also
Set Message Level
An Introduction to Modalys
Description Set Precision
Getting Started
Set Sample Rate
Objects Obtain the version of Modalys being used.
Accesses Set Bit Depth
Connections Set Number of
Controllers (get-version) Channels
The Modalys Workspace Set Angle Mode
Lisp Syntax and Default Values
1. New Workspace Get Angle Mode
2. Run Synthesis The (get-version ... ) function can be created using the
Get Workspace
3. Play Sound following Lisp syntax: Information
4. Set Message Level
5. Set Precision
(get-version)
6. Run Synthesis in Real-Time
7. Listen to IP Port
Parameters
8. Set Angle Mode
9. Get Version The (get-version) function takes no additional arguments.
10. Stop
11. Quit Modalys Discussion
12. Point Output
The (get-version) function allows you to obtain the version
13. Point Input
number of Modlays. This could be useful in order to make
14. Save AIFF Sound File sure that a user is running your script with the same
15. Save Floating-Point Sound File version of Modalys, and to optionally behave differently if
16. Set Sample Rate not (for example when a new version of Modalys has a
17. Set Bit Depth function not present in older versions).
18. Set Number of Channels
19. Get Workspace Info
20. Get Angle Mode Options
21. Make Plot
22. Plot Value There are no special options for this function.
23. Plot
24. Load Modalys Script
25. Load Modalys Component
26. Save Mlys Script File
27. MIDI to Frequency
28. Frequency to MIDI
Finite Elements
Appendix
Index
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/workspace_version.html[28/05/13 15:58:37]
Modalys - Stop
Guide Map
Modalys
Summary
Stop See also
Run Synthesis
An Introduction to Modalys
Description Play Sound
Getting Started
New Workspace
Objects Allows you to stop synthesis, or stop playback of a sound.
Accesses Basically, it causes Modalys to stop doing whatever it is doing. Load Modalys Script
Connections Quit Modalys
Controllers
The Modalys Workspace (stop)
1. New Workspace
Lisp Syntax and Default Values
2. Run Synthesis
3. Play Sound The (stop) function can be created using the following
4. Set Message Level Lisp syntax:
5. Set Precision
6. Run Synthesis in Real-Time
(stop)
7. Listen to IP Port
8. Set Angle Mode
Parameters
9. Get Version
10. Stop The (stop) function takes no additional arguments.
11. Quit Modalys
12. Point Output Discussion
13. Point Input
The (stop) function lets you to abort a very long synthesis
14. Save AIFF Sound File part-way through, or stop playback of a sound before it
15. Save Floating-Point Sound File has finished playing. Basically, it is a general tool that
16. Set Sample Rate causes Modalys to stop doing whatever it is doing. It is
17. Set Bit Depth probably something you don't want to type into your
18. Set Number of Channels scripts. Use it with caution.
19. Get Workspace Info
20. Get Angle Mode
21. Make Plot Options
22. Plot Value
23. Plot There are no special options for this function.
24. Load Modalys Script
25. Load Modalys Component
26. Save Mlys Script File
27. MIDI to Frequency
28. Frequency to MIDI
Finite Elements
Appendix
Index
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/workspace_stop.html[28/05/13 15:59:22]
Modalys - Quit Modalys
Guide Map
Modalys
Summary
Quit Modalys See also
New Workspace
An Introduction to Modalys
Description Load Modalys Script
Getting Started
Run Synthesis
Objects Quit the Modalys application (without asking to save changes to
Accesses currently open scripts). Play Sound
Connections Stop
Controllers
The Modalys Workspace (quit)
1. New Workspace
Lisp Syntax and Default Values
2. Run Synthesis
3. Play Sound The (quit) function can be invoked using the following Lisp
4. Set Message Level syntax:
5. Set Precision
6. Run Synthesis in Real-Time
(quit)
7. Listen to IP Port
8. Set Angle Mode
Parameters
9. Get Version
10. Stop The (quit) function takes no additional arguments.
11. Quit Modalys
12. Point Output Discussion
13. Point Input
The (quit) function causes Modalys to quit immediately
14. Save AIFF Sound File without asking to save changes to currently open scripts.
15. Save Floating-Point Sound File You will probably generally want to choose quit from the
16. Set Sample Rate menu, instead, but we thought we should mention it so
17. Set Bit Depth you can be careful not to type and evaluate it by accident!
18. Set Number of Channels
19. Get Workspace Info
20. Get Angle Mode Options
21. Make Plot
22. Plot Value There are no special options for this function.
23. Plot
24. Load Modalys Script
25. Load Modalys Component
26. Save Mlys Script File
27. MIDI to Frequency
28. Frequency to MIDI
Finite Elements
Appendix
Index
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/workspace_quit.html[28/05/13 16:00:10]
Modalys - Point Output
Guide Map
Modalys
Summary
Point Output See also
Set Number of
An Introduction to Modalys Channels
Description
Getting Started Point Input
Objects Creates an audio output from the speed of an access or directly
Accesses
Accesses from the value of a controller.
Connections
Controllers
Controllers
The Modalys Workspace (make-point-output ... )
1. New Workspace
Lisp Syntax and Default Values
2. Run Synthesis
3. Play Sound An audio output from the Modalys workspace can be
4. Set Message Level created using the following Lisp syntax:
5. Set Precision
6. Run Synthesis in Real-Time
(make-point-output
7. Listen to IP Port
access_reference)
8. Set Angle Mode
9. Get Version
10. Stop or:
11. Quit Modalys
12. Point Output
(make-point-output
13. Point Input
access_reference channel scalar
14. Save AIFF Sound File
mode_selection)
15. Save Floating-Point Sound File
16. Set Sample Rate
17. Set Bit Depth or:
18. Set Number of Channels
19. Get Workspace Info
(make-point-output
20. Get Angle Mode
controller_reference channel
21. Make Plot scalar selected_dimension)
22. Plot Value
23. Plot
Parameters
24. Load Modalys Script
25. Load Modalys Component The (make-point-output ... ) function takes from one to
26. Save Mlys Script File four arguments:
27. MIDI to Frequency access_reference: the access to which the
28. Frequency to MIDI "loudspeaker" should be attached.
Finite Elements controller_reference: a controller whose value
Appendix will be output, instead of the speed of an access.
Index channel: (optional) which output channel to send
the samples to (default 0, i.e. channel 1).
scalar: (optional) value or controller to scale the
amplitude of the samples (default 1).
©IRCAM 2013 (optional) if provided, it is used
mode_selection:
http://support.ircam.fr/docs/Modalys/current/co/workspace_point_output.html[28/05/13 16:00:59]
Modalys - Point Output
Discussion
Options
Retro-Compatibility
(make-output-from-controller
controller_reference channel
selected_dimension)
http://support.ircam.fr/docs/Modalys/current/co/workspace_point_output.html[28/05/13 16:00:59]
Modalys - Point Output
http://support.ircam.fr/docs/Modalys/current/co/workspace_point_output.html[28/05/13 16:00:59]
Modalys - Point Input
Guide Map
Modalys
Summary
Point Input See also
Signal Controller
An Introduction to Modalys
Description Point Output
Getting Started
Sound File Controller
Objects Creates an audio input to be used with a signal controller.
Accesses
Connections
Controllers (make-point-input ... )
The Modalys Workspace
Lisp Syntax and Default Values
1. New Workspace
2. Run Synthesis An audio input into the Modalys workspace can be
3. Play Sound created using the following Lisp syntax:
4. Set Message Level
5. Set Precision
(make-point-output channel scalar
6. Run Synthesis in Real-Time
)
7. Listen to IP Port
8. Set Angle Mode
Parameters
9. Get Version
10. Stop The (make-point-input ... ) function takes up to two
11. Quit Modalys arguments:
12. Point Output
channel: input channel number (default 0, i.e.
13. Point Input channel 1).
14. Save AIFF Sound File scalar: (optional) value or controller to scale the
15. Save Floating-Point Sound File amplitude of the samples (default 1).
16. Set Sample Rate
17. Set Bit Depth As with the point-output function, the channels are
18. Set Number of Channels
numbered starting from 0.
19. Get Workspace Info The scalar can either be a static numerical value or a
20. Get Angle Mode controller, which could be used to vary the volume
21. Make Plot dynamically (i.e. to create a fade-in, fade-out, etc...).
22. Plot Value
23. Plot Discussion
24. Load Modalys Script
The (make-point-input ...) function should be used with
25. Load Modalys Component
(make-controller 'signal ...) in order to create a controller
26. Save Mlys Script File that can be used to manipulate parameters in Modalys.
27. MIDI to Frequency For example:
28. Frequency to MIDI
Finite Elements
Appendix
(setq my-input (make-point-input
0))
Index
(setq my-controller (make-
controller 'signal 1 my-input))
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/workspace_point_input.html[28/05/13 16:01:49]
Modalys - Point Input
Options
http://support.ircam.fr/docs/Modalys/current/co/workspace_point_input.html[28/05/13 16:01:49]
Modalys - Save AIFF Sound File
Guide Map
Modalys
Summary
Save AIFF Sound File See also
Save Floating-Point
An Introduction to Modalys Sound File
Description
Getting Started Set Sample Rate
Objects Saves a synthesized sound to the standard cross-platform AIFF
Set Bit Depth
Accesses (Audio Interchange File Format) file. (AIFF-C to be precise.)
Connections
Set Number of
Channels
Controllers
The Modalys Workspace (save-aiff ... )
1. New Workspace
Lisp Syntax and Default Values
2. Run Synthesis
3. Play Sound The (save-aiff ... ) function can be created using the
4. Set Message Level following Lisp syntax:
5. Set Precision
6. Run Synthesis in Real-Time
(save-aiff filename)
7. Listen to IP Port
8. Set Angle Mode
Parameters
9. Get Version
10. Stop The (save-aiff ... ) function takes one argument:
11. Quit Modalys
filename: pathname of sound file to be saved. (in
12. Point Output
quotes.)
13. Point Input
14. Save AIFF Sound File The pathname of the soundfile should be provided in
15. Save Floating-Point Sound File quotes. The path is relative to the Modalys application,
16. Set Sample Rate unless it begins with a slash, in which case it is an
17. Set Bit Depth absolute path from the root directory of the hard disk. The
18. Set Number of Channels
syntax for the path follows the syntax rules of your
operating system. [At one time Modalys had a user-
19. Get Workspace Info
settable soundfile directory that was used as the default
20. Get Angle Mode
directory.]
21. Make Plot
22. Plot Value The sampling rate and bit depth of the sound file will
23. Plot depend on that set in the Modalys workspace for the
24. Load Modalys Script synthesis.
25. Load Modalys Component
26. Save Mlys Script File Discussion
27. MIDI to Frequency For individual sounds, it is usually easier to choose the
28. Frequency to MIDI "Save Sound as AIFF..." option from the application's
Finite Elements Script menu. Nonetheless, it is very useful to be able to
Appendix automatically save sound files from within a script, such
Index as in cases where the sound synthesis is run multiple
times with different parameters in a loop.
http://support.ircam.fr/docs/Modalys/current/co/workspace_sound_save_aiff.html[28/05/13 16:02:37]
Modalys - Save AIFF Sound File
(save-aiff "mysound.aiff")
(save-aiff "/my-disk/my-
folder/mysound.aiff")
(defvar counter)
(setq counter 0)
. . .
Note that the number of channels in the AIFF file will the
same as the number of output channels. Although
Modalys can handle multichannel AIFF files, not all audio
software is able to do so! You may have to manually split
multichannel files into individual mono files using your
favorite audio editing application.
The sample rate of the fill will be the same as the sample
rate set in the Modalys environment using (set-sample-
rate ... ). By default this is 44100 Hz.
Modalys also saves the AIFF file with the bit depth set in
the Modalys environment using (set-bit-depth ... ). By
default this is set to 24-bit samples. You can currently
choose either 16, 24 or 32 bit integer samples, for
compatibility with the standard AIFF-C options. Again,
sound files may need to be converted for use with some
audio editing software applications.
Options
Retro-Compatibility
http://support.ircam.fr/docs/Modalys/current/co/workspace_sound_save_aiff.html[28/05/13 16:02:37]
Modalys - Save AIFF Sound File
http://support.ircam.fr/docs/Modalys/current/co/workspace_sound_save_aiff.html[28/05/13 16:02:37]
Modalys - Save Floating-Point Sound File
Guide Map
Modalys
Summary
Save Floating-Point Sound See also
An Introduction to Modalys
File Save AIFF Sound File
Set Sample Rate
Getting Started
Description Set Bit Depth
Objects
Accesses Saves the current sound as a raw soundfile in floating-point Set Number of
Connections format. Channels
Controllers
The Modalys Workspace
1. New Workspace (save-float ... )
2. Run Synthesis
Lisp Syntax and Default Values
3. Play Sound
4. Set Message Level The (save-float ... ) function can be created using the
5. Set Precision following Lisp syntax:
6. Run Synthesis in Real-Time
7. Listen to IP Port
(save-float filename)
8. Set Angle Mode
9. Get Version
Parameters
10. Stop
11. Quit Modalys The (save-float ... ) function takes one argument:
12. Point Output
filename: pathname of sound file to be saved. (in
13. Point Input quotes.)
14. Save AIFF Sound File
15. Save Floating-Point Sound File The pathname of the soundfile should be provided in
16. Set Sample Rate quotes. The path is relative to the Modalys application,
17. Set Bit Depth unless it begins with a slash, in which case it is an
18. Set Number of Channels
absolute path from the root directory of the hard disk. The
syntax for the path follows the syntax rules of your
19. Get Workspace Info
operating system. [At one time Modalys had a user-
20. Get Angle Mode
settable soundfile directory that was used as the default
21. Make Plot
directory.]
22. Plot Value
23. Plot
Discussion
24. Load Modalys Script
25. Load Modalys Component For individual sounds, it is usually easier to choose the
26. Save Mlys Script File "Save Sound as AIFF..." option from the application's
27. MIDI to Frequency Script menu. Nonetheless, there may be cases when you
28. Frequency to MIDI
want to save the original (32-bit) floating point data to a
raw data file. Not all applications will be able to play it.
Finite Elements
Appendix
Index
Options
http://support.ircam.fr/docs/Modalys/current/co/workspace_sound_save_float.html[28/05/13 16:03:26]
Modalys - Save Floating-Point Sound File
http://support.ircam.fr/docs/Modalys/current/co/workspace_sound_save_float.html[28/05/13 16:03:26]
Modalys - Set Sample Rate
Guide Map
Modalys
Summary
Set Sample Rate See also
Set Bit Depth
An Introduction to Modalys
Description Set Number of
Getting Started Channels
Objects Sets the current sample rate for the synthesis.
Set Precision
Accesses
Connections
Set Message Level
http://support.ircam.fr/docs/Modalys/current/co/workspace_sound_samplerate.html[28/05/13 16:04:14]
Modalys - Set Sample Rate
http://support.ircam.fr/docs/Modalys/current/co/workspace_sound_samplerate.html[28/05/13 16:04:14]
Modalys - Set Bit Depth
Guide Map
Modalys
Summary
Set Bit Depth See also
Set Sample Rate
An Introduction to Modalys
Description Set Number of
Getting Started Channels
Objects Sets the current sample bit depth for the synthesis.
Set Precision
Accesses
Connections
Set Message Level
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/workspace_sound_bitdepth.html[28/05/13 16:05:03]
Modalys - Set Number of Channels
Guide Map
Modalys
Summary
Set Number of Channels See also
Point Output
An Introduction to Modalys
Description Set Sample Rate
Getting Started
Set Bit Depth
Objects Can be optionally used to set the current number of channels
Accesses to use, overriding the automatic calculation based derived from Set Precision
Connections the channel arguments used with the point outputs. Set Message Level
Controllers Set Angle Mode
The Modalys Workspace
Get Angle Mode
1. New Workspace (set-number-of-channels ... )
Get Version
2. Run Synthesis
Lisp Syntax and Default Values Get Workspace
3. Play Sound
The (set-number-of-channels ... ) function can be created Information
4. Set Message Level
5. Set Precision using the following Lisp syntax:
6. Run Synthesis in Real-Time
7. Listen to IP Port
(set-number-of-channels value)
8. Set Angle Mode
9. Get Version
Parameters
10. Stop
11. Quit Modalys The (set-number-of-channels ... ) function takes one
12. Point Output argument:
13. Point Input value: number of audio output channels.
14. Save AIFF Sound File
15. Save Floating-Point Sound File You can set any number of channels you like. The default
16. Set Sample Rate is 1 channel. If you use more than two channels, you may
17. Set Bit Depth not be able to play the sound.
18. Set Number of Channels
19. Get Workspace Info
Discussion
20. Get Angle Mode Manually setting the number of output channels is
21. Make Plot optional. Modalys will automatically determine the number
22. Plot Value of output channels based on the channel arguments
23. Plot provided to the Point Output functions that are used in the
24. Load Modalys Script script. (The make-point-output command additionally has
25. Load Modalys Component optional arguments to set which channel to direct the
26. Save Mlys Script File output to.)
27. MIDI to Frequency
28. Frequency to MIDI
Finite Elements Options
Appendix
Index There are no special options for this function.
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/workspace_sound_channels.html[28/05/13 16:05:53]
Modalys - Get Workspace Info
Guide Map
Modalys
Summary
Get Workspace Information See also
Get Object Information
An Introduction to Modalys
Description Get Access Information
Getting Started
Get Connection
Objects Get information about the Modalys workspace using the
Information
Accesses standard (get-info ... ) function.
Connections
Get Controller
Information
Controllers
The Modalys Workspace (get-info ... )
1. New Workspace
Lisp Syntax and Default Values
2. Run Synthesis
3. Play Sound The generic (get-info ... ) function can be used to obtain
4. Set Message Level workspace-specific information using the following Lisp
5. Set Precision syntax:
6. Run Synthesis in Real-Time
7. Listen to IP Port
(get-info data_type )
8. Set Angle Mode
9. Get Version
Parameters
10. Stop
11. Quit Modalys The (get-info ... ) function requires just one arguments to
12. Point Output get information about the workspace:
13. Point Input data_type: a string defining the type of data to
14. Save AIFF Sound File request.
15. Save Floating-Point Sound File
16. Set Sample Rate
Controllers
17. Set Bit Depth
18. Set Number of Channels The following types of workspace-specific data can be
19. Get Workspace Info
requested using the standard (get-info ...) function:
(get-info 'sample-rate)
(get-info 'sample-period)
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/workspace_info_get.html[28/05/13 16:06:41]
Modalys - Get Workspace Info
(get-info 'num-outputs)
(get-info 'max-sample)
(get-info 'time)
Options
http://support.ircam.fr/docs/Modalys/current/co/workspace_info_get.html[28/05/13 16:06:41]
Modalys - Get Angle Mode
Guide Map
Modalys
Summary
Get Angle Mode See also
Set Angle Mode
An Introduction to Modalys
Description Get Workspace
Getting Started Information
Objects Get the current state of the angle mode that Modalys is using.
Set Message Level
Accesses
Connections
Set Precision
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/workspace_mode_angle_get.html[28/05/13 16:07:31]
Modalys - Make Plot
Guide Map
Modalys
Summary
Make Plot See also
Plot Value
An Introduction to Modalys
Description Plot
Getting Started
Objects Initialize a graph for plotting data obtained from a controller.
Accesses
Connections
Controllers
The Modalys Workspace
1. New Workspace
2. Run Synthesis
3. Play Sound
4. Set Message Level
5. Set Precision
6. Run Synthesis in Real-Time
7. Listen to IP Port
8. Set Angle Mode
9. Get Version (make-plot)
10. Stop
11. Quit Modalys Lisp Syntax and Default Values
12. Point Output
The (make-plot) function can be created using the
13. Point Input following Lisp syntax:
14. Save AIFF Sound File
15. Save Floating-Point Sound File
16. Set Sample Rate (make-plot)
17. Set Bit Depth
18. Set Number of Channels Parameters
19. Get Workspace Info This command initializes a graph, and returns a reference
20. Get Angle Mode to it. It has no additional parameters.
21. Make Plot
22. Plot Value Discussion
23. Plot
You should use (make-plot) before calling any of the
24. Load Modalys Script
other plotting functions, since they need the reference to
25. Load Modalys Component
the graph it creates. Here is a simple example of how to
26. Save Mlys Script File
use this plotting feature (the resulting graph is shown,
27. MIDI to Frequency
above):
28. Frequency to MIDI
Finite Elements
Appendix (setq my-env (make-controller
Index 'envelope 1 '((0 0) (1 1) (2 0))))
http://support.ircam.fr/docs/Modalys/current/co/workspace_plot_make.html[28/05/13 16:08:21]
Modalys - Make Plot
(run 2)
Options
Retro-Compatibility
http://support.ircam.fr/docs/Modalys/current/co/workspace_plot_make.html[28/05/13 16:08:21]
Modalys - Plot Value
Guide Map
Modalys
Summary
Plot Value See also
Make Plot
An Introduction to Modalys
Description Plot
Getting Started
Objects Plots a one curve over time from a controller dimension's value.
Accesses
Connections
Controllers
The Modalys Workspace
1. New Workspace
2. Run Synthesis
3. Play Sound
4. Set Message Level
5. Set Precision
6. Run Synthesis in Real-Time
7. Listen to IP Port
8. Set Angle Mode
9. Get Version (plot-value ... )
10. Stop
11. Quit Modalys Lisp Syntax and Default Values
12. Point Output
The (plot-value) function can be created using the
13. Point Input following Lisp syntax:
14. Save AIFF Sound File
15. Save Floating-Point Sound File
16. Set Sample Rate (plot-value plot_reference label
17. Set Bit Depth
controller_reference dimension)
Discussion
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/workspace_plot_value.html[28/05/13 16:09:11]
Modalys - Plot Value
For each curve you want plotted, you call the plot-value
command before running the synthesis. The first
argument is a reference to a graph created with (make-
plot). The second argument is a string which will be the
label for that curve. The third argument is a reference to a
controller whose data will be graphed. The fourth
argument is optional, and can be used to specify a
dimension other than the first for multi-dimensional
controllers. Here is a simple example of how to plot the
three dimensions of a 3-dimensional controller (the
resulting graph is shown in the image, above):
'( (0 0 0.5 1)
(1 1 0 0.25)
(2 0 1 0.75)) ))
(run 2)
Options
Retro-Compatibility
http://support.ircam.fr/docs/Modalys/current/co/workspace_plot_value.html[28/05/13 16:09:11]
Modalys - Plot
Guide Map
Modalys
Summary
Plot See also
Make Plot
An Introduction to Modalys
Description Plot Value
Getting Started
Objects Plots a graph after synthesis of the system has been run.
Accesses
Connections
Controllers
The Modalys Workspace
1. New Workspace
2. Run Synthesis
3. Play Sound
4. Set Message Level
5. Set Precision
6. Run Synthesis in Real-Time
7. Listen to IP Port
8. Set Angle Mode
9. Get Version (plot ... )
10. Stop
11. Quit Modalys Lisp Syntax and Default Values
12. Point Output The (plot ... ) function can be created using the following
13. Point Input Lisp syntax:
14. Save AIFF Sound File
15. Save Floating-Point Sound File
16. Set Sample Rate
(plot plot_reference label type
domain_min domain_max range_min
17. Set Bit Depth
range_max)
18. Set Number of Channels
19. Get Workspace Info
20. Get Angle Mode
Parameters
21. Make Plot The (plot ... ) function takes a minimum of two, and up to
22. Plot Value seven arguments:
23. Plot
plot_reference: reference to a plot created with
24. Load Modalys Script
(make-plot)
25. Load Modalys Component
label: a string (in quotes) that will be used as a
26. Save Mlys Script File
label in the title-bar for this graph.
27. MIDI to Frequency type: (optional) a value to define the type of plot.
28. Frequency to MIDI (default 0 = plot over time)
Finite Elements domain_min: (optional) minimum value for the x-
Appendix axis graph.
Index domain_max: (optional) maximum value for the x-
axis graph.
range_min: (optional) minimum value for the y-
axis graph.
©IRCAM 2013
range_max: (optional) maximum value for the y-
http://support.ircam.fr/docs/Modalys/current/co/workspace_plot_plot.html[28/05/13 16:10:01]
Modalys - Plot
axis graph.
If the x and y ranges are not given, then plot uses the
minimum and maximum values of the data to
automatically set the graph's domain and range.
Discussion
Options
Retro-Compatibility
http://support.ircam.fr/docs/Modalys/current/co/workspace_plot_plot.html[28/05/13 16:10:01]
Modalys - Load Modalys Script
Guide Map
Modalys
Summary
Load Modalys Script See also
Load Modalys
An Introduction to Modalys Component
Description
Getting Started Save Mlys Script File
Objects Loads a Modalys script file into Modalys.
Accesses
Connections
Controllers (load ... )
The Modalys Workspace
Lisp Syntax and Default Values
1. New Workspace
2. Run Synthesis The (load ... ) function can be created using the following
3. Play Sound Lisp syntax:
4. Set Message Level
5. Set Precision
(load filename)
6. Run Synthesis in Real-Time
7. Listen to IP Port
Parameters
8. Set Angle Mode
9. Get Version The (load ... ) function takes one argument:
10. Stop
filename: pathname of Modalys script to be
11. Quit Modalys
loaded. (in quotes.)
12. Point Output
13. Point Input The pathname of the Modalys script should be provided in
14. Save AIFF Sound File quotes. The path is relative to the Modalys application,
15. Save Floating-Point Sound File unless it begins with a slash, in which case it is an
16. Set Sample Rate absolute path from the root directory of the hard disk. The
17. Set Bit Depth syntax for the path follows the syntax rules of your
18. Set Number of Channels
operating system.
Retro-Compatibility
Once upon©IRCAM
a time, the file extension (.mos at that time)
2013
http://support.ircam.fr/docs/Modalys/current/co/workspace_file_load.html[28/05/13 16:10:51]
Modalys - Load Modalys Script
http://support.ircam.fr/docs/Modalys/current/co/workspace_file_load.html[28/05/13 16:10:51]
Modalys - Load Modalys Component
Guide Map
Modalys
Summary
Load Modalys Component See also
Load Modalys Script
An Introduction to Modalys
Description Save Mlys Script File
Getting Started
Objects Loads a Modalys component file into Modalys.
Accesses
Connections
Controllers (load-component ... )
The Modalys Workspace
Lisp Syntax and Default Values
1. New Workspace
2. Run Synthesis The (load-component ... ) function can be created using
3. Play Sound the following Lisp syntax:
4. Set Message Level
5. Set Precision
(load-component filename)
6. Run Synthesis in Real-Time
7. Listen to IP Port
Parameters
8. Set Angle Mode
9. Get Version The (load-component ... ) function takes one argument:
10. Stop
filename: name of Modalys component fileto be
11. Quit Modalys
loaded. (in quotes.)
12. Point Output
13. Point Input The name of the Modalys component file should be
14. Save AIFF Sound File provided in quotes, and include the extension (.lisp). The
15. Save Floating-Point Sound File path used for (load-component ... ) is has already been
16. Set Sample Rate defined in the Modalys workspace as
17. Set Bit Depth Components/runtime/lisp (for the Lisp environment) or
18. Set Number of Channels
similar path within the Components folder.
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/workspace_file_load_component.html[28/05/13 16:25:51]
Modalys - Save Mlys Script File
Guide Map
Modalys
Summary
Save Mlys Script File See also
Load Modalys Script
An Introduction to Modalys
Description Load Modalys
Getting Started Component
Objects Saves a the contents of the Modalys workspace to a Mlys-
Save AIFF Sound File
Accesses format Modalys script.
Connections
Save Floating-Point
Sound File
Controllers
The Modalys Workspace (save-script ... )
1. New Workspace
Lisp Syntax and Default Values
2. Run Synthesis
3. Play Sound The (save-script ... ) function can be created using the
4. Set Message Level following Lisp syntax:
5. Set Precision
6. Run Synthesis in Real-Time
(save-script filename)
7. Listen to IP Port
8. Set Angle Mode
Parameters
9. Get Version
10. Stop The (save-script ... ) function takes one argument:
11. Quit Modalys
filename: pathname of Mlys file to be saved. (in
12. Point Output
quotes.)
13. Point Input
14. Save AIFF Sound File The pathname of the Mlys file should be provided in
15. Save Floating-Point Sound File quotes. The path is relative to the Modalys application,
16. Set Sample Rate unless it begins with a slash, in which case it is an
17. Set Bit Depth absolute path from the root directory of the hard disk. The
18. Set Number of Channels
syntax for the path follows the syntax rules of your
operating system.
19. Get Workspace Info
20. Get Angle Mode
Discussion
21. Make Plot
22. Plot Value It is usually easier to choose the "Export as Mlys ..." option
23. Plot from the application's File menu. Nonetheless, it can
24. Load Modalys Script sometimes be useful to be able to automatically save
25. Load Modalys Component Mlys script files from within a Lisp script.
26. Save Mlys Script File When saving from a script, remember that the name of
27. MIDI to Frequency the Mlys file should be in quotes, and we also suggest
28. Frequency to MIDI saving the file with the extension ".mlys" (extensions are
Finite Elements not automatically added to the filename). The following
Appendix command will export a Mlys script to a file in the same
Index directory as the Modalys application:
(save-script "myscript.mlys")
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/workspace_file_save_script.html[28/05/13 16:26:32]
Modalys - Save Mlys Script File
(save-script "/my-disk/my-
folder/myscript.mlys")
Options
http://support.ircam.fr/docs/Modalys/current/co/workspace_file_save_script.html[28/05/13 16:26:32]
Modalys - MIDI to Frequency
Guide Map
Modalys
Summary
MIDI to Frequency See also
Frequency to MIDI
An Introduction to Modalys
Description
Getting Started
Objects Converts MIDI note values to Frequency values in Hz.
Accesses
Connections
Controllers (midi-to-freq ... )
The Modalys Workspace
Lisp Syntax and Default Values
1. New Workspace
2. Run Synthesis The (midi-to-freq ... ) function can be created using the
3. Play Sound following Lisp syntax:
4. Set Message Level
5. Set Precision
(midi-to-freq value)
6. Run Synthesis in Real-Time
7. Listen to IP Port
Parameters
8. Set Angle Mode
9. Get Version The (midi-to-freq ... ) function takes one argument:
10. Stop
value: a numerical value to convert from a MIDI
11. Quit Modalys
note value to Frequency in Hertz
12. Point Output
13. Point Input The numerical value can be either an integer or a floating-
14. Save AIFF Sound File point number.
15. Save Floating-Point Sound File
16. Set Sample Rate Discussion
17. Set Bit Depth The (midi-to-freq ... ) function is a handy built-in tool to
18. Set Number of Channels convert from MIDI note values (linear octaves, log
19. Get Workspace Info frequency) to Frequency values in Hertz.
20. Get Angle Mode
21. Make Plot
22. Plot Value Options
23. Plot
24. Load Modalys Script
There are no special options for this function.
25. Load Modalys Component
26. Save Mlys Script File
27. MIDI to Frequency
28. Frequency to MIDI
Finite Elements
Appendix
Index
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/workspace_conversion_mtof.html[28/05/13 16:27:22]
Modalys - Frequency to MIDI
Guide Map
Modalys
Summary
Frequency to MIDI See also
MIDI to Frequency
An Introduction to Modalys
Description
Getting Started
Objects Converts MIDI note values to Frequency values in Hz.
Accesses
Connections
Controllers (freq-to-midi ... )
The Modalys Workspace
Lisp Syntax and Default Values
1. New Workspace
2. Run Synthesis The (freq-to-midi ... ) function can be created using the
3. Play Sound following Lisp syntax:
4. Set Message Level
5. Set Precision
(freq-to-midi value)
6. Run Synthesis in Real-Time
7. Listen to IP Port
Parameters
8. Set Angle Mode
9. Get Version The (freq-to-midi ... ) function takes one argument:
10. Stop
value: a numerical value to convert from a
11. Quit Modalys
Frequency in Hertz to a MIDI note value
12. Point Output
13. Point Input The numerical value returned may be a floating-point MIDI
14. Save AIFF Sound File value. It is up to you to truncate or round the value as
15. Save Floating-Point Sound File necessary.
16. Set Sample Rate
17. Set Bit Depth Discussion
18. Set Number of Channels The (freq-to-midi ... ) function is a handy built-in tool to
19. Get Workspace Info convert from Frequency values in Hertz to MIDI note
20. Get Angle Mode values (linear octaves, log frequency).
21. Make Plot
22. Plot Value
23. Plot Options
24. Load Modalys Script
25. Load Modalys Component There are no special options for this function.
26. Save Mlys Script File
27. MIDI to Frequency
28. Frequency to MIDI
Finite Elements
Appendix
Index
©IRCAM 2013
http://support.ircam.fr/docs/Modalys/current/co/workspace_conversion_ftom.html[28/05/13 16:28:13]