Hi Thijs! Great to see that you're starting to play around with the code.
About your gui update problem: There is a event mechanism which enables the core of hydrogen to notify the user interface about any changes. Have a look at pull request 460 (https://github.com/hydrogen-music/hydrogen/pull/460), it is an example of how to refresh a part of the user interface after a midi event has happened. Best regards and happy hacking, Sebastian Am 20.01.2017 17:42, schrieb Thijs van severen: > Hi guys ! > > i have just created a ticket for an enhancement that would really make > my life a lot easier > (seeĀ https://github.com/hydrogen-music/hydrogen/issues/471 [1]) > > i'm actually trying to have a go at it, but i'm a bit stuck :-) > > So far i have figured out that void SongEditor::createBackground() in > SongEditor.cpp does the actual gui update, but it seems that it is > only called when the pattern loops > i have no clue how i can trigger this gui update when a > select_next_pattern midi message is recieved > > I have also found out that when you send a midi select_next_pattern > message to H2 this triggers the MidiActionManager::select_next_pattern > function in midi_actions.cpp > if i could trigger the gui update from here i might be able to make > this work > > any ideas ? > > grtz > Thijs-- > > follow me on my Audio & Linux blog > <http://audio-and-linux.blogspot.com/ [2]> ! > > > > Links: > ------ > [1] https://github.com/hydrogen-music/hydrogen/issues/471 > [2] http://audio-and-linux.blogspot.com/ ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Hydrogen-devel mailing list Hydrogen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hydrogen-devel