back to list

'Equal Divisions Explorer' in CSound

🔗Hudson Lacerda <hfmlacerda@yahoo.com.br>

4/5/2006 6:00:08 PM

Hello.

I just finished a Csound program to explore "equal divisions" scales with a MIDI keyboard:

<http://br.geocities.com/hfmlacerda/EDexplorer.csd.txt>

Users can have direct control on:

0) Number of divisions of the octave (or pseudo-octave);
1) (Pseudo-)Octave for timbre (stretched/shrunk octaves);
2) (Pseudo-)Octave for scale (to be divided in equal steps);
3) Fundamental frequency for MIDI pitch 69;
4) Amplitude factor for partials;
5) Nominal amplitude (volume) for the tones;
6) Number of partials (up to 11);
7) Option to quantize the partials into the scale.

This allows to explore several EDOs with/without *induced spectra*.

Thanks to Bill Sethares for the formalization of the relation scale/spectrum and for the concept of induced spectra.

Best wishes.
Hudson Lacerda

--
'-------------------------------------------------------------------.
Hudson Lacerda <http://geocities.yahoo.com.br/hfmlacerda/>
*N�o deixe seu voto sumir! http://www.votoseguro.org/
*Ap�ie o Manifesto: http://www.votoseguro.com/alertaprofessores/

== THE WAR IN IRAQ COSTS ==
http://nationalpriorities.org/index.php?option=com_wrapper&Itemid=182
.-------------------------------------------------------------------'
--


_______________________________________________________ Abra sua conta no Yahoo! Mail: 1GB de espa�o, alertas de e-mail no celular e anti-spam realmente eficaz. http://br.info.mail.yahoo.com/

🔗Ozan Yarman <ozanyarman@ozanyarman.com>

4/10/2006 10:07:01 AM

Can you facilitate this for people like myself unacquainted with CSound? A
step-by-step set of instructions would be most helpful.

Cordially,
Oz.

----- Original Message -----
From: "Hudson Lacerda" <hfmlacerda@yahoo.com.br>
To: <tuning@yahoogroups.com>; "MMM" <MakeMicroMusic@yahoogroups.com>
Sent: 06 Nisan 2006 Per�embe 4:00
Subject: [tuning] 'Equal Divisions Explorer' in CSound

> Hello.
>
> I just finished a Csound program to explore "equal divisions" scales
> with a MIDI keyboard:
>
> <http://br.geocities.com/hfmlacerda/EDexplorer.csd.txt>
>
> Users can have direct control on:
>
> 0) Number of divisions of the octave (or pseudo-octave);
> 1) (Pseudo-)Octave for timbre (stretched/shrunk octaves);
> 2) (Pseudo-)Octave for scale (to be divided in equal steps);
> 3) Fundamental frequency for MIDI pitch 69;
> 4) Amplitude factor for partials;
> 5) Nominal amplitude (volume) for the tones;
> 6) Number of partials (up to 11);
> 7) Option to quantize the partials into the scale.
>
> This allows to explore several EDOs with/without *induced spectra*.
>
> Thanks to Bill Sethares for the formalization of the relation
> scale/spectrum and for the concept of induced spectra.
>
> Best wishes.
> Hudson Lacerda
>

🔗Hudson Lacerda <hfmlacerda@yahoo.com.br>

4/10/2006 8:43:13 PM

Ozan Yarman escreveu:
> Can you facilitate this for people like myself unacquainted with CSound? A
> step-by-step set of instructions would be most helpful.
> > Cordially,
> Oz.

Instructions for... ?

0) Install CSound -- this is system specific. See:
<http://www.csounds.com/>
<http://www.csounds.com/manual/html/index.html>
<http://kevindumpscore.com/docs/csound-manual/>

1) Get the file with the `Equal Divisions Explorer' program.
<http://br.geocities.com/hfmlacerda/EDexplorer.csd.txt>

2) Rename the file *without* the extension ``.txt''. The file name
*must* end in ``.csd''. This is the unified ``Structured Data File Format''.

3) Attach a MIDI input device to your computer.

4) Revise the <CsOptions> according to your system (-+rtaudio=<?>, remove --sched for csound version < 5.00); I hope the code works for csound-4.22 or later.

5) Try running the command:
csound EDexplorer.csd

BTW, since just a few days my installation of CSound is not working anymore (shared object for FLTK widgets can't be loaded). :(

Hudson

--
'-------------------------------------------------------------------.
Hudson Lacerda <http://geocities.yahoo.com.br/hfmlacerda/>
*N�o deixe seu voto sumir! http://www.votoseguro.org/
*Ap�ie o Manifesto: http://www.votoseguro.com/alertaprofessores/

== THE WAR IN IRAQ COSTS ==
http://nationalpriorities.org/index.php?option=com_wrapper&Itemid=182
.-------------------------------------------------------------------'
--


_______________________________________________________ Abra sua conta no Yahoo! Mail: 1GB de espa�o, alertas de e-mail no celular e anti-spam realmente eficaz. http://br.info.mail.yahoo.com/

🔗Ozan Yarman <ozanyarman@ozanyarman.com>

4/21/2006 4:18:19 AM

Hudson, there seems to be a problem with the --sched trigger in the text
file when running csound EDexplorer.csd.

How do I change the midi device in csound?

Cordially,
Oz.

----- Original Message -----
From: "Hudson Lacerda" <hfmlacerda@yahoo.com.br>
To: <tuning@yahoogroups.com>
Sent: 11 Nisan 2006 Sal� 6:43
Subject: Re: [tuning] 'Equal Divisions Explorer' in CSound

> Ozan Yarman escreveu:
> > Can you facilitate this for people like myself unacquainted with CSound?
A
> > step-by-step set of instructions would be most helpful.
> >
> > Cordially,
> > Oz.
>
> Instructions for... ?
>
> 0) Install CSound -- this is system specific. See:
> <http://www.csounds.com/>
> <http://www.csounds.com/manual/html/index.html>
> <http://kevindumpscore.com/docs/csound-manual/>
>
> 1) Get the file with the `Equal Divisions Explorer' program.
> <http://br.geocities.com/hfmlacerda/EDexplorer.csd.txt>
>
> 2) Rename the file *without* the extension ``.txt''. The file name
> *must* end in ``.csd''. This is the unified ``Structured Data File
Format''.
>
> 3) Attach a MIDI input device to your computer.
>
> 4) Revise the <CsOptions> according to your system (-+rtaudio=<?>,
> remove --sched for csound version < 5.00); I hope the code works for
> csound-4.22 or later.
>
> 5) Try running the command:
> csound EDexplorer.csd
>
> BTW, since just a few days my installation of CSound is not working
> anymore (shared object for FLTK widgets can't be loaded). :(
>
> Hudson
>

🔗Hudson Lacerda <hfmlacerda@yahoo.com.br>

4/21/2006 9:55:34 AM

Ozan Yarman escreveu:
> Hudson, there seems to be a problem with the --sched trigger in the text
> file when running csound EDexplorer.csd.
> > How do I change the midi device in csound?
> > Cordially,
> Oz.

Hi Ozan.

You need Csound-5.0 or newer for GNU/Linux to use --sched (real time priority). You can remove this option for other versions. Here I use Csound-5.01.1 on Debian GNU/Linux. --sched only works running csound as root, then one have to run ``sudo csound ...' or `su -c "csound ...".

The midi device is set by the -M option.
<http://csounds.com/manual/html/CommandFlags.html>

You can also choose the midi channel by assigning a channel to an instrument with massign:
http://csounds.com/manual/html/massign.html

Cheers,
Hudson

--
'-------------------------------------------------------------------.
Hudson Lacerda <http://geocities.yahoo.com.br/hfmlacerda/>
*N�o deixe seu voto sumir! http://www.votoseguro.org/
*Ap�ie o Manifesto: http://www.votoseguro.com/alertaprofessores/

== THE WAR IN IRAQ COSTS ==
http://nationalpriorities.org/index.php?option=com_wrapper&Itemid=182
.-------------------------------------------------------------------'
--


_______________________________________________________ Abra sua conta no Yahoo! Mail: 1GB de espa�o, alertas de e-mail no celular e anti-spam realmente eficaz. http://br.info.mail.yahoo.com/

🔗Ozan Yarman <ozanyarman@ozanyarman.com>

4/24/2006 4:34:29 PM

I downloaded CSound 5.01 for Windows 98/ME, I think. I still wish to hear
something with it, but all my efforts were for nought. The DOS command
interface is too bulky for a windows user like myself! Do you have a Cecilia
version instead?

Cordially,
Oz.

----- Original Message -----
From: "Hudson Lacerda" <hfmlacerda@yahoo.com.br>
To: <tuning@yahoogroups.com>
Sent: 21 Nisan 2006 Cuma 19:55
Subject: Re: [tuning] 'Equal Divisions Explorer' in CSound

> Ozan Yarman escreveu:
> > Hudson, there seems to be a problem with the --sched trigger in the text
> > file when running csound EDexplorer.csd.
> >
> > How do I change the midi device in csound?
> >
> > Cordially,
> > Oz.
>
> Hi Ozan.
>
> You need Csound-5.0 or newer for GNU/Linux to use --sched (real time
> priority). You can remove this option for other versions. Here I use
> Csound-5.01.1 on Debian GNU/Linux. --sched only works running csound as
> root, then one have to run ``sudo csound ...' or `su -c "csound ...".
>
> The midi device is set by the -M option.
> <http://csounds.com/manual/html/CommandFlags.html>
>
> You can also choose the midi channel by assigning a channel to an
> instrument with massign:
> http://csounds.com/manual/html/massign.html
>
> Cheers,
> Hudson
>

🔗Hudson Lacerda <hfmlacerda@yahoo.com.br>

4/24/2006 6:30:09 PM

Hi Ozan.

Ozan Yarman escreveu:
> I downloaded CSound 5.01 for Windows 98/ME, I think. I still wish to hear
> something with it, but all my efforts were for nought.

I would suggest you to install the version 4.23 or 4.24. Version 5 is yet in experimental stage and it may not work in some systems.

> The DOS command interface is too bulky for a windows user like myself!

Csound expects the executables are available in a directory in the %PATH (and some few system variables more). I don't know how to do this on non-95 or non-98 versions of Windows. For Win95 and Win98, I recall that the variables are set by editing `C:\autoexec.bat'. Have `doskey' running is also helpful.
See:
http://www.csounds.com/manual/html/ch06s02.html

About GUIs, there is a CSound for Windows compilation called Winsound:
http://www.csounds.com/installing/howtowindows/index.html

See also this version with a fancy GUI interface (CsoundAV):
http://www.csounds.com/maldonado/

> Do you have a Cecilia version instead?

No. DeMuDi includes Cecilia but I removed it because I never used it. BTW, Cecilia is a program to help creating CSound code, not a CSound version. Nonetheless, maybe you can find Cecilia useful as an interface to run CSound.
http://cecilia.sourceforge.net/

Cheers,
Hudson

--
'-------------------------------------------------------------------.
Hudson Lacerda <http://geocities.yahoo.com.br/hfmlacerda/>
*N�o deixe seu voto sumir! http://www.votoseguro.org/
*Ap�ie o Manifesto: http://www.votoseguro.com/alertaprofessores/

== THE WAR IN IRAQ COSTS ==
http://nationalpriorities.org/index.php?option=com_wrapper&Itemid=182
.-------------------------------------------------------------------'
--


_______________________________________________________ Abra sua conta no Yahoo! Mail: 1GB de espa�o, alertas de e-mail no celular e anti-spam realmente eficaz. http://br.info.mail.yahoo.com/