back to list

abc2sco.tcl : outputs Csound .sco and Scala .seq from .abc

🔗hfmlacerda <hfmlacerda@...>

2/27/2009 11:05:38 AM

Hi,

I just uploaded abc2sco.tcl [0].

abc2sco.tcl is a Tcl [1] script which uses the tclabc extension [2] to
convert ABC music notation files into Csound .sco files [3] as well as
into Scala .seq files [4].

It supports Tartini-Couper accidentals for microtonalism. By default,
abc2sco.tcl outputs 31-EDO.

MAIN FEATURES:
- Basic features of tclabc ;-)
- Output scores for Csound (.sco), Scala (.seq) and compilaeventos.m
- Support notes, chords and grace notes
- Articulations: non legato, legato and staccato (and a rather
simple portato as consequence)
- Tempo (Q: field) works with Scala (.seq) and Csound (.sco)
(compilaeventos. only accepts constant tempo)
- Tempo changes with !accel.! / !rall.!
(these are almost the same. Use Q: along with them)
- Quartertone accidentals (default tuning is 31-EDO)
- Dynamics: !pppp! !ppp! !pp! !p! !mp! !mf! !f! !ff! !fff! !ffff!
- Accents: L !accent! !emphasis! !sfz! (are all the same)
- Onsets can be slightly randomized (setting attackdelay as fraction
of quarter note)
- Support nested tuplets (setting nestedtuplets as nonzero), but it
is a rather ugly hack, and cannot work with tied notes in tuplets
(disabled by default)

abc2sco.tcl, at this initial stage, still lacks any user interface to
define settings. Those are defined inside the script itself.

I would like to read suggestions on how one could control it (how to
set tunings, notation format, csound parameters etc.). There are
several input points which could be used:

- Command line (currently only defines ABC filenames and oputput
format: -csound or -scala)
- ABC file (commands like "%%MIDI temperamentlinear")
- Config file (not implemented)
- Graphical interface (I plan integrate abc2sco.tcl as an extension
for tkabc.tcl, and also with an own GUI)

Cheers,
Hudson Lacerda

[0] http://geocities.yahoo.com.br/hfmlacerda/misc/abc2sco.zip
[1] http://www.tcl.tk/
[2] http://moinejf.free.fr/
http://moinejf.free.fr/tclabc.html
[3] http://www.csounds.com/
http://www.csounds.com/manual/html/ScoreTop.html
[4] http://www.xs4all.nl/~huygensf/scala/
http://www.xs4all.nl/~huygensf/scala/seq_format.html

🔗Carl Lumma <carl@...>

3/4/2009 8:37:18 PM

Hi Hudson - have any screen shots? -Carl

At 11:05 AM 2/27/2009, you wrote:
>Hi,
>
>I just uploaded abc2sco.tcl [0].
>
>abc2sco.tcl is a Tcl [1] script which uses the tclabc extension [2] to
>convert ABC music notation files into Csound .sco files [3] as well as
>into Scala .seq files [4].
>
>It supports Tartini-Couper accidentals for microtonalism. By default,
>abc2sco.tcl outputs 31-EDO.
>
>MAIN FEATURES:
>- Basic features of tclabc ;-)
>- Output scores for Csound (.sco), Scala (.seq) and compilaeventos.m
>- Support notes, chords and grace notes
>- Articulations: non legato, legato and staccato (and a rather
> simple portato as consequence)
>- Tempo (Q: field) works with Scala (.seq) and Csound (.sco)
> (compilaeventos. only accepts constant tempo)
>- Tempo changes with !accel.! / !rall.!
> (these are almost the same. Use Q: along with them)
>- Quartertone accidentals (default tuning is 31-EDO)
>- Dynamics: !pppp! !ppp! !pp! !p! !mp! !mf! !f! !ff! !fff! !ffff!
>- Accents: L !accent! !emphasis! !sfz! (are all the same)
>- Onsets can be slightly randomized (setting attackdelay as fraction
> of quarter note)
>- Support nested tuplets (setting nestedtuplets as nonzero), but it
> is a rather ugly hack, and cannot work with tied notes in tuplets
> (disabled by default)
>
>abc2sco.tcl, at this initial stage, still lacks any user interface to
>define settings. Those are defined inside the script itself.
>
>I would like to read suggestions on how one could control it (how to
>set tunings, notation format, csound parameters etc.). There are
>several input points which could be used:
>
>- Command line (currently only defines ABC filenames and oputput
> format: -csound or -scala)
>- ABC file (commands like "%%MIDI temperamentlinear")
>- Config file (not implemented)
>- Graphical interface (I plan integrate abc2sco.tcl as an extension
> for tkabc.tcl, and also with an own GUI)
>
>Cheers,
>Hudson Lacerda
>
>[0] http://geocities.yahoo.com.br/hfmlacerda/misc/abc2sco.zip
>[1] http://www.tcl.tk/
>[2] http://moinejf.free.fr/
> http://moinejf.free.fr/tclabc.html
>[3] http://www.csounds.com/
> http://www.csounds.com/manual/html/ScoreTop.html
>[4] http://www.xs4all.nl/~huygensf/scala/
> http://www.xs4all.nl/~huygensf/scala/seq_format.html
>
>
>
>------------------------------------
>
>Yahoo! Groups Links
>
>
>

🔗hfmlacerda <hfmlacerda@...>

3/5/2009 10:34:43 AM

--- In MakeMicroMusic@yahoogroups.com, Carl Lumma <carl@...> wrote:
>
> Hi Hudson - have any screen shots? -Carl

Hi Carl,

I don't find very useful to get screen shots of command line programs...

Here is how to create a microtonal MIDI file from ABC using
abc2sco.tcl and Scala:
tclsh abc2sco.tcl -scala FILE.ABC > FILE.SEQ
scala --cd `pwd` --example FILE.SEQ FILE.MID --exit
(Remove "-scala" if you want to get a csound .sco)

Currently the output is in 31-EDO, but one can edit the SEQ file to
use a different tuning. As I said before, I am not sure of the proper
way to control the program (setting tunings, scala notation system,
csound extra parameters etc.): inside the abc file, using comandline
flags, config files etc.

BTW, here are (again) the screen shots for TKmicroabc:
http://br.geocities.com/hfmlacerda/misc/tkmicroabc/TKmicroabc.html
http://br.geocities.com/hfmlacerda/misc/tkmicroabc-alpha.tgz

Cheers,
Hudson