NoteWeaver Community Forum  

Go Back   NoteWeaver Community Forum > Customer Support

Reply
 
Thread Tools Display Modes
  #1  
Old 07-04-2008, 07:12 PM
Cliff Cliff is offline
Junior Member
 
Join Date: Jul 2008
Posts: 2
Default Use of pedal to switch maps

I am trying to use the pedal to switch back and forth between 2 maps. On my keyboard, I have mapped the pedal to CC80 - General_5. On the Synths menu, the pedal makes the view number jump around - incrementing by more than one on a press, usually decrementing by 1 on a release.

In live play, it does not seem to do anything at all.
Reply With Quote
  #2  
Old 07-10-2008, 06:15 AM
admin's Avatar
admin admin is offline
Administrator
 
Join Date: Dec 2007
Location: San Jose, CA
Posts: 17
Default

Hi Cliff,

I currently check the incoming controller data by:

if(data > 64) increment synths map (and update screen if synths screen)
else decrement synths map (and update screen if synths screen)

The MIDI 1.0 spec says: "If a receiver is expecting switch information it should recognize 0 - 63 (00H - 3FH) as off and 64 - 127 (40H - 7FH) as on."

If your controller generates 0 and 64, then my above if statement would always decrement, which it doesn't.

I'll change it to: if(data >= 64)... which is correct, per the midi spec.

If I recall correctly at the time I tested this by remapping the sustain pedal, and controller 80 wasn't technically tested, so that could be an issue. -- still doesn't explain your symptoms.

I suspect the synths maps are getting updated, but during real-time play, somehow they're getting reset back to previous values??

The actual code looks so simple, and I can't currently imagine any type of midi feedback loop, like Local On/Off being on. That can't happen here, since I don't send any midi controller events out, I just catch the incoming ones and update the actual synths map value then return.

I'll keep exploring what could be happening.

Thanks,

Paul
Reply With Quote
  #3  
Old 07-10-2008, 04:31 PM
admin's Avatar
admin admin is offline
Administrator
 
Join Date: Dec 2007
Location: San Jose, CA
Posts: 17
Default

At 3 in the morning it occured to me that, unlike the KG map pedal updates that simply require the map variable to change, during synths updates I need to send the updated patch, volume, pan, etc. out to the synths right when it occurs. When viewing the synths sceen this is automatically done since I redraw the screen.

Still doesn't explain the multiple pedal ups and unreliable pedal downs you're seeing.
Reply With Quote
  #4  
Old 07-10-2008, 08:44 PM
Cliff Cliff is offline
Junior Member
 
Join Date: Jul 2008
Posts: 2
Default Key Bounce?

Is it possible that the foot pedal has a really bouncy key switch? If you want me to drop my pedal by your place or anything else I can do to help troubleshoot, let me know.
Reply With Quote
  #5  
Old 07-10-2008, 11:05 PM
admin's Avatar
admin admin is offline
Administrator
 
Join Date: Dec 2007
Location: San Jose, CA
Posts: 17
Default

Internally I use a function called UpdateProgramsAndVolumes that goes through and sends out the latest program, volume, and pan changes if they are different than they were to the synths during synths map updates. I discovered I wasn't updating them at all, and added this routine at the correct places.

Now I'm trying to track down a really bizzar thing that generates duplicate control and program changes, but handles note on and offs just fine.

So for each pedal up and down I get 2 events, which switches from synths map 0 to 2 to 0 to 2, etc.

So if it's in your hardware, it's also in mine. It's happening right down where the system captures the midi messages, themselves. I can always filter out duplicate messages but that's a bandaid and not the cleanest approach. I've eliminated all midi buffering, that's not it.

Thanks for offering your support, think it's in my hands for now,

To be continued...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 09:17 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 2009 NoteSpeed