To be specific, the above applies to the Debug configuration. For a Release configuration, the libraries have no "d": ..\CFugue\lib\CFugueu.lib;..\CFugue\lib\jdkmidiu.lib;WinMM.lib;
To be specific, the above applies to the Debug configuration: For a Release configuration, the libraries have no "d": ..\CFugue\lib\CFugueu.lib;..\CFugue\lib\jdkmidiu.lib;WinMM.lib;
In Visual Studio (for me 2019) should be added: #include "..\CFugue\include\CFugueLib.h" Next in project properties -> linker -> input data -> additional dependencies add at the beginning: ..\CFugue\lib\CFuguedu.lib;..\CFugue\lib\jdkmididu.lib;WinMM.lib; "..\CFugue" above is a relational or full path to your compiled by CMake CFugue project. It is not necessary to add the CFugue project itself to the solution. And it works.
It is complaining about sound card. Looks like the OS you are running does not have sound card. GK On Tue, 5 Feb 2019, 05:41 Jack Mo <jack-mo@users.sourceforge.net wrote: When I try to run testCFugue, I get the following error: ``` ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory RtMidiOut::initialize: error creating ALSA sequencer client object. terminate called after throwing an instance of 'RtError' Aborted (core dumped) ``` I'm using Ubuntu for Windows...
When I try to run testCFugue, I get the following error: ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory RtMidiOut::initialize: error creating ALSA sequencer client object. terminate called after throwing an instance of 'RtError' Aborted (core dumped) I'm using Ubuntu for Windows if that helps.
Try to copy | paste the sampe application code as is, into your app and see if it works.
So I add the location of the header files to my CMAKE as you mentioned and now I'm able to import CFugueLib.h. However, now I'm getting undefined reference to CFugue::Player::Player(unsigned int, unsigned int) and undefined reference to CFugue::MIDIRenderer::~MIDIRenderer() errors when I try to use CFugue::Player player;.
In your CMAKE file you may need to add the location of where the 'CFugueLib.h' is to the include directories path. Refer to the INCLUDE_DIRECTORIES variable in CMake Doumentation. https://cmake.org/cmake/help/v3.7/prop_dir/INCLUDE_DIRECTORIES.html
Hello, I'm currently trying to staticlly link CFugue with CMake and include it in my own project. I was able to link it using target_link_libraries(encode libjdkmididu.a) and target_link_libraries(encode libCFuguedu.a). However, when I add #include "CFuguedu.h"to my code, I get the following error: fatal error: CFugueLib.h: No such file or directory compilation terminated. I tried looking at the StaticLibTestApp example and the CMakeLists but I'm not getting anywhere. Can I possibly get some help?...
I've little idea what to use to render the MIDI (or what it even means). Currently for the generated midi files I just use Windows Media Player to listen to it, and they sound the same as when they are directly played in the code in runtime. Also I tested what's mentioned above on two different machines, one is a laptop with Windows 7 and the other is a desktop with Windows 10. The conclusions are the same. Its still the case that the decay value doesn't seem to make a difference and attack value...
Thank you. Reviewed the code, it is adding the attack and decay velocities to the MIDI properly. It could be problem with the underlying MIDI driver or the sound fonts (runtime on the OS). If you use other software to render the MIDI with attack and decay are they sounding different?
Hi, I've beening trying to test the effect of different Attack and Decay numbers after reading the documentation of them. However, the results seem to me very confusing. According to what I tested attack value basically determine the overal volume of a note or chord (the larger the attack value is the higher volume), and the decay value doesn't seem to do anything (no noticable difference for different different values of decay). I tested it for different instruments, the conclusion seems always...
Hi I finally got it working!!! Here's how I found the problem and fixed it. I tried to put my code in the testCFugueLib and do some test, both with the _T() and without. Surprisingly, I found that the version without _T() doesn't even compile in testCFugueLib (and the version with _T() works as expected)! So I feel there's some settings in the project thats making the difference. Then I compared the project setting between my separate one and testCFugueLib, and found that mine has the Character Set...
Can you just use PlayMusicString and see if it works. Also, instead of creating new project / solution, try modifying the example code testCFugueLib and see if it works. Could be issue with Unicode, _T(), or with MIDI_MAPPER
Hello, I've been trying this for a couple of hours and got the library compiled. However, after I wrote an example program, it compiles but it doesn't do what I expect it to do. Here is my program. #include "CFugue/CFugueLib.h" int main() { _tprintf(_T("\nPlaying Notes..")); CFugue::PlayMusicStringWithOpts(_T("C D E F G A B"), MIDI_MAPPER, 20); _tprintf(_T(" Done")); _tprintf(_T("\nWriting Notes..")); CFugue::SaveAsMidiFile("C D E F G A B", "MidiOutput.midi"); _tprintf(_T(" Done")); return 0; } To...
But if I want to pause it? I don't want to wait until play() is finished, I need to stop it at any time.
You can send only the required notes (to the play() function) and once the play is finished wait as much time as needed and call play again afresh with required notes. Since this is API based, you have control over how many notes and how many times the play is called.
Hello, I need to know if it's possible to pause a Player. I want to do a metronome that can be stopped and restarted. Thanks in advance.
I had another question, is there a possible way to pause when using Play() ?
Oh, thank you so much, the music string notation of JFugue was really helpful, I really appreciated.
with chords it should be possible. or with using notation similar to that of J FUGUE music string triplet, it should be possible. could you please try the second option? the music string notation of jfugue is available over the net. thanks GK https://Cenacle.co.in
Hi, I've been testing the library and I think it's so great but I have a question. Is it possible to create a triplet feel in CFugue?
CFugue expects to be built with Unicode option. For some reason the code is using char\* instead of wchar_t at line https://sourceforge.net/p/cfugue/code/HEAD/tree/MusicNote/include/Dictionary.h#l37 You may want to check the build settings if you are building with UNICODE option on or not. It should be on. Also, you can try to redfine and use your own string class, such as std::wstring using the STRUTILS_RETURN_TYPE macro. Please refer this: https://sourceforge.net/p/oil/code/HEAD/tree/Common/StrUtils.h#l10...
Hi. I am trying to link against MusicNote from the SVN snapshot, on Windows using Qt5's Mingw toolchain. I have successfully built it with cmake, and configured my project to add cfugue's include and libraries. Note that I am using -std=c++14 (or -std=c+=11, I did try this one as well) in my projects However I am getting those errors: In file included from F:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/c++/map:61:0, from ..\..\musictest\lib/note.h:7, from ..\..\musictest\lib/database.h:4, from...
Thanks for pointing it. GK http://CenacleResearch.com/
Found these files in zie archive. Just for some reasons they are missed in svn repository.
Hello, I'm trying to compile CFugue on windows with VisualStudio. I'm getting errors due to missing files in repository. At least the following cannot be found: Common/EventHandler.h Common/TChar.h Common/MString.h I cannot find them anywhere in repository. Thank you
added controller event binding
That was it, thank you very much!
Thank you for reporting it Daniel. Some of these controller events were not wired...
Hello again. I need a volume scale from 0 to 100 (or something similar). Been trying...
Thanks Daniel for sharing the diff. Yes, agreed - its a good feature to have. Will...
It worked! Thank you very much for the quick, very well-explained response! This...
Daniel, I do not think "Pause" is currently supported / exposed as API. The Player...
Ok, we decided to use the single call, but we're having no luck in pausing the player...
Hello, Each call to 'PlayMusicString' starts and stops the driver (along with doing...
Hi! We've been using CFugue for a CS project at my uni. We're attempting to play...
Looks like you are using Windows. You would not need TSE3. What build problems are...
Hello P.GopalaKrishna! I am trying to use CFugue but I can't use CMake properly....
Sorry - you are right. The 'CFuguedu.lib' is the generated library for debug/unicode...
Forgive me if I'm being dense, but I still can't get this to work. After building...
You can ignore the INSTALL project. It is automatically generated by cmake. You can...
Without the DLL option, i can build the solution, however when I then try to build...
Is the build working correctly without the DLL option (i.e. leave the CFUGUE_BUILD_DLL...
Hi, I am having trouble compiling with VC++2013. I created the visual studio solution...
Hi, I am having trouble compiling with VC++2013. I created the visual studio solution...
That would be the "Tempo". You can use the token 'T' to adjust it. Something like:...
Hello Eovanion, What are the C++ errors you are seeing in the code? Perhaps I can...
Hi, If you're having issues running cmake on OSX for CFauge. Edit CMakeLists.txt...
Hi. Prompt please, how to change the default velocity (not of only one note)? Sorry...
Thanks GK - I have got that working now. Now to explore CFugue's capabilities ! ...
In the Visual Studio solution you should see the 'testCFugueLib' project. That is...
Hi GK, Thanks for your very prompt response. I agree that your suggested method would...
The easiest and best way to get started with CFugue would be to start adjusting the...
Hi, I am very new to C++, so please forgive me if my questions sound stupid. My operating...
The "RtMidiOut::sendMessage: event parsing error!" is just warning output, it does...
Now the strings are working fine! \o The problem is that the instruments issue persisted...
Now the strings are working fine! \o The problem is that the instruments issue persisted...
Please download the latest release code. It has Instrument correction as well as...
tse3 dependency removed for now to avoid releas...
You would have to use .c_str() method of wstring to give the right string to play....
Another thing, when I try to play a wstring the compiler says: test.cpp:12:49: error:...
Well, It only works if I define input as a MString and initialize it with a literal...
MString is essentially subclass of std::wstring if _UNICODE is defined. You can either...
I haven't tried to solve the instrument problem yet. But now I have some doubts about...
Fix: RtMidi instrument change event errors fixed.
I have quickly verified RtMidi, and there is a slight 'difference' in the way RtMidi...
Well, I tried saveToMidi File tip and when I played the MIDI file the same problem...
RtMidi on linux has few problems with changing the instruments on the fly (The same...
I dont know why but when I try to run this code: int main(){ CFugue::Player player(1,...
Got it! I was forgetting about -lpthread and -std="c++0x". Now it's working properly....
1. Fixed ControllerEvent.h missing from cmake
You are almost there. Except for few things. The 'CFuguedu' indicates 'debug-unicode'...
I only have a few questions. As I told before I'm new in the linux environment and...
I only have a few questions. As I told before I'm new in the linux environment and...
[100%] Built target testCFugueLib! \o \o Thank you very much for all the support....
After build is done, you can run 'bin/testCFugueLib' application. The code for that...
Ah...the case sensitivity. The header files are there, but the system has problem...
Corrected name casing for include files (unix h...
I followed the instructions contained in the readMe file and installed all the necessary...
Fixed the issue in the latest download. Please download the zip file again from the...
TortoiseSVN auto commit: changed externals to f...
Corrected the QT4 requirement in test/CMakeList...
Removing this to insert correct version which C...
qt4 test projects turned off in the build (for ...
We are also very frustrate with Qt and its unnecessary complications. Qt5 has breaking...
Now, I've got some problems while trying to run cmake. It is someting related to...
Release 10-May-2014
Corrected the problems, and also updated few core sections to use C++11x new standards....