Skip to content

Commit

Permalink
test/stimmulti: test that binding a variable twice also works across …
Browse files Browse the repository at this point in the history
…devices
  • Loading branch information
wpwrak committed Feb 14, 2012
1 parent 9823551 commit cc6b764
Showing 1 changed file with 47 additions and 1 deletion.
48 changes: 47 additions & 1 deletion src/compiler/test/stimmulti
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

###############################################################################

ptest "stimuli, multi: bind control variable twice" -c -q \
ptest "stimuli, multi: bind control variable twice (same device)" -c -q \
-v sx -m 0=0 -m 0=127 -m 1=0 -m 1=127 -m 0=0 << EOF
midi "foo" {
foo = pot(0);
Expand All @@ -23,6 +23,52 @@ EOF

#------------------------------------------------------------------------------

ptest "stimuli, multi: bind control variable twice (2 devs, same addr)" -c -q \
-v sx -m 0=0 -m 0=127 -m 0=0 -m 0=127 -m 0=0 << EOF
midi "foo" {
foo_pot = pot(0);
}
midi "bar" {
bar_pot = pot(0);
}
sx = range(foo_pot);
sx = range(bar_pot);
EOF
expect <<EOF
0
1
0
1
0
EOF

#------------------------------------------------------------------------------

ptest "stimuli, multi: bind control variable twice (2 devs, diff addr)" -c -q \
-v sx -m 0=0 -m 0=127 -m 1=0 -m 1=127 -m 0=0 << EOF
midi "foo" {
foo_pot = pot(0);
}
midi "bar" {
bar_pot = pot(1);
}
sx = range(foo_pot);
sx = range(bar_pot);
EOF
expect <<EOF
0
1
0
1
0
EOF

#------------------------------------------------------------------------------

ptest "stimuli, multi: bind control element twice (1)" -c -q \
-v foo -m 0=0 -m 0=63 -m 0=127 -m 0=0 << EOF
midi "foo" {
Expand Down

0 comments on commit cc6b764

Please sign in to comment.