Tirsdag den 18. november 2008 17:13:53 skrev Sebastian Moors:
> Hi Kjo!
>
> Kjo Hansi Glaz wrote:
> > case MidiMessage::PROGRAM_CHANGE:
> > INFOLOG( QString( "[handleMidiMessage] PROGRAM_CHANGE event,
> > seting next pattern to %1" ).arg( msg.m_nData1 ) );
> > Hydrogen::get_instance()->sequencer_setNextPattern(msg.m_nData1,
> > false, false);
> > break;
> >
> > For the moment, this is NOT working on my machine, i.e. it doesn't
> > actually change the plying pattern.
>
> I'm the one who implemented the new midi stuff ( like action.cpp and the
> corresponding interface ), but
> i haven't wrote the PC code. I can't test it here because i have no
> devices with PC support, so haven't touched or tested it.
>
> > I aslo saw in action.cpp a mechanism that enables the user to bind
> > actions to midi events, so I wonder if it wouldnt be beter to handle PC
> > events with this mechanism and to add an action for triggering pattern
> > on/off. I tried to do this and it seems to work, with this modification
> > in action.cpp :
> >
> > 106c106,107
> > < << "TAP_TEMPO";
> > ---
> >
> >> << "TAP_TEMPO"
> >> << "SELECT_NEXT_PATTERN";
> >
> > 604a606,614
> >
> >> if( sActionString == "SELECT_NEXT_PATTERN"){
> >> bool ok;
> >> int row = pAction->getParameter1().toInt(&ok,10);
> >> pEngine->setSelectedPatternNumber( row );
> >> pEngine->sequencer_setNextPattern( row, false, true );
> >> return true;
> >> }
>
> Thanks! I'll test it later and apply the patch if it works.
>
> > Last thing, it would be very useful for me that instead of triggering
> > the playing pattern immediatly, it would be possible to change the
> > pattern at the end of the playing pattern. I guessed this was controlled
> > by the appendPattern and deletePattern parameters of the
> > Hydrogen::sequencer_setNextPattern function in hydrogen.cpp, but it
> > doesn't seems to work. So I tried to understand how these parameters
> > work, but I didn't understood anything, so I was wondering if there is
> > any documentation on the internal conception on hydrogen. I didn't found
> > it on the wiki.
>
> No, there is no documentation beside the manual and wiki, sorry. I'm not
> very used to these internals,
> but i will see if can get it working. Btw. nice idea!!
Isn't this more or less the same idea as the 'live pattern mode' (or 'stacked
pattern mode'), where the pattern change is postponed until the next bar?
- Jakob
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Hydrogen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel