Hi,
It's a popup menu to allow simple selection between different samples
or "fonts"
that Hydrogen recognises while using the Pattern Editor. I was hoping
to have it
finished last weekend but ran into a problem with QT that I need to find a way
around.
Maybe someone here can help but I'm also asking on a QT forum.
-------------------
pseudo code example.
int i = 1;
int ii = 2;
int id = soundfontmenu->addItem(text, this, Slot(function1(int));
soundfontmenu->setParameter(id, i);
int id1 = soundfontmenu->connectItem(text, this, Slot(function2(int));
soundfontmenu->setParameter(id, ii);
-------------------
What this does is to add an item to the soundfont menu. No problem
there. Then I
connect a second function to the item so that when it is pressed two functions
are called. No problem there...
The problem is that I want to pass a different variable on each
function but the
item can only have one variable associated. SetParameter overrides the
variable meaning that both functions pass the same variable.
The reason I want to pass two different variables is that the first function
sets the drumkit and the second sets the sample.
Maybe I should make a new array that holds all the info for the
drumkits and the
samples but I can only pass an int so I can't see how to get the
correct id for
a multiple level array. ie. array( [0] => "Drumkit0", [0,0] => "Sample0")
Ideas welcome...
Cheers.
Quoting Alexandre Prokoudine <[EMAIL PROTECTED]>:
On 1/25/06, Patrick Shirkey wrote:
Just a quick update to let you know that I have the "Soundfont" menu 90%
functional.
When you say "soundfont", do you mean specifically SF2 files?
Alexandre
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Hydrogen-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel
--
Patrick Shirkey - Boost Hardware Ltd.
Http://www.boosthardware.com
Http://www.djcj.org/ - The Linux Audio Users guide
Http://www.djcj.org/gigs - Gigs Guide Korea
========================================
Being on stage with the band in front of crowds shouting, "Get off! No!
We want normal music!", I think that was more like acting than anything
I've ever done.
Goldie, 8 Nov, 2002
The Scotsman
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Hydrogen-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel