[kln2-devel] tune + amo
Brought to you by:
wiecko
From: Silhusk <si...@bl...> - 2004-08-05 14:17:47
|
Hi, the guitar tuner is really great! The 'free recognition' mode can easily be used for other instruments than guitars. Some people use A0 = 444 Hz or other frequencies, could we let the user choose the frequency of A0 (giving 440 as default)? (a little text field in the guitar tuner's window would be enough) the guitar tuner is not perfect... :( Some time KLN2 hangs up or generates a 'segmentation fault'. I think it's because of some negative pitchs it returns. some debug - Stack dump: BaseMusicNote::numOfNoteInOctave (pitch=-6) at basemusicnote.cpp: 119 BaseMusicNote::isWhite (pitch=-6) at basemusicnote.cpp: 122 BaseMusicNote::accidentalOf (pitch=-6) at basemusicnote.cpp: 144 BaseMusicNote::stringName (pitch=-6) at basemusicnote.cpp: 373 BaseMusicNote::stringName (numInOctave=0, accident=0, shorty=false) at aseusicote.cpp: 191 BaseMusicNote::stringName (pitch=-6) at basemusicnote.cpp: 373 BaseMusicNote::stringName (numInOctave=0, accident=0, shorty=false) at aseusicote.cpp: 191 BaseMusicNote::stringName (pitch=-6) at basemusicnote.cpp: 373 BaseMusicNote::stringName (numInOctave=0, accident=0, shorty=false) at aseusicote.cpp: 191 BaseMusicNote::stringName (pitch=-6) at basemusicnote.cpp: 373 [...] BaseMusicNote::stringName (numInOctave=0, accident=0, shorty=false) at aseusicote.cpp: 191 BaseMusicNote::stringName (pitch=-6) at basemusicnote.cpp: 373 GuitarTunerDialog::customEvent (this=0x8250390, e=0xfffffffa) at guitartuner.cpp: 241 QObject::event () from /usr/lib/libqt-mt.so.3 [...] stringName functions recursively call themselves forming an endless loop and then causing the segmentation fault :( this is my diagnosys. ## another midi output I wrote another midi output way using fluidsynth (http://www.fluidsynth.org/) wich is a software synthesizer. Unfortunately it uses SoundFonts (requiring another file), but some can be freely downloaded from http://www.geocities.com/SiliconValley/Campus/8645/sf2.html http://www.hammersound.net/cgi-bin/soundlink.pl?action=view_category&category=Collections (I used 'Vintage Dreams') Of course SoundFonts can also be created! (see http://smurf.sourceforge.net/ ) KLN2 looks for a SoundFont file named 'kln2fluid.sf2' that must be placed in program's current directory. It would be better to let the user choose wich file to use, but this means edit MIDI_setup dialog and options' struct. Can I do it? Note: the SoundFont file is not present in the cvs yet, but I'm trying to make a minimalist one, just with piano and guitar. Regards, Carlo |