Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Framework/CSound/CSoundConstants.py
diff options
context:
space:
mode:
authorOlivier Belanger <olipet@d179-241.D-FAC.UMontreal.CA>2006-08-22 14:45:48 (GMT)
committer Olivier Belanger <olipet@d179-241.D-FAC.UMontreal.CA>2006-08-22 14:45:48 (GMT)
commit6e5100eb9795144c8b1ea991bf6299b367841548 (patch)
tree4ba34072e6eabeaea613680a78f7e05b846ad549 /Framework/CSound/CSoundConstants.py
parent3cd0242c472a624c7346092eb2314f534305613a (diff)
fix little bugs
Diffstat (limited to 'Framework/CSound/CSoundConstants.py')
-rw-r--r--Framework/CSound/CSoundConstants.py66
1 files changed, 34 insertions, 32 deletions
diff --git a/Framework/CSound/CSoundConstants.py b/Framework/CSound/CSoundConstants.py
index cd905ae..2500407 100644
--- a/Framework/CSound/CSoundConstants.py
+++ b/Framework/CSound/CSoundConstants.py
@@ -60,36 +60,38 @@ class CSoundConstants:
CLARINETTE = "clarinette"
FLUTE = "flute"
- #INSTRUMENTS ( csound table, csound instrument )
+ LOW, MID, HIGH = range( 3 )
+
+ #INSTRUMENTS ( csound table, csound instrument, register, instrumentClass )
INSTRUMENT_TABLE_OFFSET = 300
- INSTRUMENTS = { CELLO : Instrument( 0, 101, 'low', 'melo' ),
- VIOLIN : Instrument( 1, 101, 'high', 'melo' ),
- TRUMPET : Instrument( 2, 101, 'high', 'melo' ),
- OUNK1 : Instrument( 3, 103, 'mid', 'melo' ),
- OUNK2 : Instrument( 4, 103, 'mid', 'melo' ),
- OUNK3 : Instrument( 5, 103, 'mid', 'melo' ),
- OUNK4 : Instrument( 6, 103, 'mid', 'melo' ),
- GAM1 : Instrument( 7, 102, 'high', 'melo' ),
- GAM2 : Instrument( 8, 102, 'high', 'melo' ),
- GAM3 : Instrument( 9, 102, 'high', 'melo' ),
- GAM4 : Instrument( 10, 102, 'high', 'melo' ),
- GAM5 : Instrument( 11, 102, 'high', 'melo' ),
- GAM6 : Instrument( 12, 102, 'high', 'melo' ),
- GAM7 : Instrument( 13, 102, 'high', 'melo' ),
- GAM8 : Instrument( 14, 102, 'high', 'melo' ),
- GONG : Instrument( 15, 102, 'low', 'melo' ),
- BD : Instrument( 16, 103, 'low', 'drum' ),
- CLAP : Instrument( 17, 103, 'mid', 'drum' ),
- COW : Instrument( 18, 103, 'mid', 'drum' ),
- CYMBAL : Instrument( 19, 103, 'low', 'drum' ),
- HHC : Instrument( 20, 103, 'high', 'drum' ),
- HHO : Instrument( 21, 103, 'high', 'drum' ),
- RIDE : Instrument( 22, 103, 'high', 'drum' ),
- SNARE : Instrument( 23, 103, 'mid', 'drum' ),
- TAMB : Instrument( 24, 103, 'mid', 'drum' ),
- TOM : Instrument( 25, 103, 'low', 'drum' ),
- WOOD : Instrument( 26, 103, 'high', 'drum' ),
- GUIT : Instrument( 27, 102, 'mid', 'melo' ),
- PIZZ : Instrument( 28, 102, 'high', 'melo' ),
- CLARINETTE : Instrument( 29, 101, 'mid', 'melo' ),
- FLUTE : Instrument( 30, 101, 'mid', 'melo' ) }
+ INSTRUMENTS = { CELLO : Instrument( 0, 101, LOW, 'melo' ),
+ VIOLIN : Instrument( 1, 101, HIGH, 'melo' ),
+ TRUMPET : Instrument( 2, 101, HIGH, 'melo' ),
+ OUNK1 : Instrument( 3, 103, MID, 'melo' ),
+ OUNK2 : Instrument( 4, 103, MID, 'melo' ),
+ OUNK3 : Instrument( 5, 103, MID, 'melo' ),
+ OUNK4 : Instrument( 6, 103, MID, 'melo' ),
+ GAM1 : Instrument( 7, 102, HIGH, 'melo' ),
+ GAM2 : Instrument( 8, 102, HIGH, 'melo' ),
+ GAM3 : Instrument( 9, 102, HIGH, 'melo' ),
+ GAM4 : Instrument( 10, 102, HIGH, 'melo' ),
+ GAM5 : Instrument( 11, 102, HIGH, 'melo' ),
+ GAM6 : Instrument( 12, 102, HIGH, 'melo' ),
+ GAM7 : Instrument( 13, 102, HIGH, 'melo' ),
+ GAM8 : Instrument( 14, 102, HIGH, 'melo' ),
+ GONG : Instrument( 15, 102, LOW, 'melo' ),
+ BD : Instrument( 16, 103, LOW, 'drum' ),
+ CLAP : Instrument( 17, 103, MID, 'drum' ),
+ COW : Instrument( 18, 103, MID, 'drum' ),
+ CYMBAL : Instrument( 19, 103, LOW, 'drum' ),
+ HHC : Instrument( 20, 103, HIGH, 'drum' ),
+ HHO : Instrument( 21, 103, HIGH, 'drum' ),
+ RIDE : Instrument( 22, 103, HIGH, 'drum' ),
+ SNARE : Instrument( 23, 103, MID, 'drum' ),
+ TAMB : Instrument( 24, 103, MID, 'drum' ),
+ TOM : Instrument( 25, 103, LOW, 'drum' ),
+ WOOD : Instrument( 26, 103, HIGH, 'drum' ),
+ GUIT : Instrument( 27, 102, MID, 'melo' ),
+ PIZZ : Instrument( 28, 102, HIGH, 'melo' ),
+ CLARINETTE : Instrument( 29, 101, MID, 'melo' ),
+ FLUTE : Instrument( 30, 101, MID, 'melo' ) }