| View previous topic :: View next topic |
| Author |
Message |
ZW
Joined: 11 Jan 2007 Posts: 18
Digg It |
Posted: Sun Jan 14, 2007 8:04 pm Post subject: Bug with my MIDI scripts in GlovePie |
|
|
For some reason I keep hearing background noise in my midi scripts when midi.note = -1 . This illustrates what I'm talking about:
| Code: |
var.wtf = -1
if keyboard.space = true then var.wtf = 22
endif
midi.firstnote = var.wtf
|
After releasing space there is still noise, but var.wtf -1 so I didn't think there should be anything playing.
Any suggestions?
[/code] |
|
| Back to top |
|
 |
CarlKenner Site Admin
Joined: 29 Nov 2006 Posts: 614
Digg It |
Posted: Sun Jan 14, 2007 10:09 pm Post subject: |
|
|
That is not a valid script.
I am guessing you want to do this:
if keyboard.space then
var.wtf = 22
else
var.wtf = -1
end if
midi.firstnote = var.wtf |
|
| Back to top |
|
 |
ZW
Joined: 11 Jan 2007 Posts: 18
Digg It |
Posted: Mon Jan 15, 2007 12:01 am Post subject: |
|
|
thanks for the reply.
That script does the same thing for me as the one I posted.
Specifically:
I press space and the note sounds. When I let go of space, there is some low rumbly noise in the background until space is pressed again.
I'm starting to think I have a midi setting wrong somewhere. I'll update this when I find a solution. |
|
| Back to top |
|
 |
|