Search:

Type: Posts; User: baikal_m

Search: Search took 0.00 seconds.

  1. Replies
    12
    Views
    13,286

    Yes, I understand the lowest numerical valued...

    Yes, I understand the lowest numerical valued note is the lowest pitch in a chord.

    The real problem that I'm facing is this:

    If I have these notes in an array: {43, 43, 48, 52}
    which would...
  2. Replies
    12
    Views
    13,286

    Common Tater, I'm sorry, I misread your...

    Common Tater,
    I'm sorry, I misread your question. What I meant is that I am using the PortSMF library which is a part of PortMedia. It's a library for reading/writing MIDI files. Actually, getting...
  3. Replies
    12
    Views
    13,286

    Yes, I am in fact using PortSMF. CommonTater,...

    Yes, I am in fact using PortSMF.

    CommonTater, thanks for helping me out the past few days. I'll take a more in depth look at the website.
  4. Replies
    12
    Views
    13,286

    MIDI Chord Recognition

    Hello,

    I'm currently working on a program that recognizes chords by analyzing MIDI note input. The only way I can think of doing this is by creating a huge database of chords and what notes they...
  5. Replies
    7
    Views
    1,910

    Thanks for all your helpful responses. I haven't...

    Thanks for all your helpful responses. I haven't worked much with structs and I'll definitely study the example and learn it.

    I kept working with multidimensional arrays and ended up figuring out...
  6. Replies
    7
    Views
    1,910

    Thanks for the info. As for the midi files,...

    Thanks for the info.

    As for the midi files, the ones I'm using are formatted the same way so they will be starting at the same time.

    But you're right, if they were all at different times and...
  7. Replies
    7
    Views
    1,910

    Grouping Question

    Hello all,

    I'm trying to write code that groups together the members existing within a multi-dimensional array.

    What I've written so far takes in a midi file and spits out the following list:
    ...
  8. Replies
    13
    Views
    2,434

    Thank you all so much for the suggestions. It...

    Thank you all so much for the suggestions. It seems that I wasn't too clear exactly what I wanted to do... but, I've figured it out and here's the answer to my own question:


    ...
  9. Replies
    13
    Views
    2,434

    All, Thanks for the replies. I think there was...

    All,

    Thanks for the replies. I think there was a confusion with which while loop I was talking about. The following is the only bit of the code we need for this discussion:

    ...
  10. Replies
    13
    Views
    2,434

    Just did it, but the the loop still doesn't stop...

    Just did it, but the the loop still doesn't stop once it is initiated:



    while(1)
    {
    if(Pm_Poll(stream))
    {
    length = Pm_Read(stream, event, sizeof(long));
  11. Replies
    13
    Views
    2,434

    Turning off While loop in realtime

    Hello all,

    I'm going to ask a question that involves MIDI, but it actually doesn't have to be MIDI. My questions is on how to turn off the while loop via hardware input. (i.e. keyboard)

    I'm...
  12. Replies
    2
    Views
    1,026

    My bad... I meant to include my system but...

    My bad... I meant to include my system but didn't.

    I'm on Max OS 10.6, and since this if for school I'm writing it to run on other macs. When I run the executable directly by double clicking on...
  13. Replies
    2
    Views
    1,026

    How to set correct directory

    Hello all,

    I'm writing a code that creates a couple of files and saves them. The problem is, when the files are created they are saved to the user's home folder(unless the directory has been set...
  14. Replies
    7
    Views
    7,210

    Hello all, Thanks for the responses you've...

    Hello all,

    Thanks for the responses you've given me.

    I'm using a language called CSound with C, so playing and creating wav files is not a problem.

    I wanted the C part of the program to get...
  15. Replies
    7
    Views
    7,210

    .wav file length in seconds

    Hello all,

    I'm trying to put together something that can read a .wav file, and figure out the length in seconds.

    Could anyone show me a simple way of doing it?

    I know that the equation is t...
  16. Replies
    6
    Views
    19,160

    Trying to figure out fopen() and fwrite(), but...

    Trying to figure out fopen() and fwrite(), but not succeeding.

    Can someone show me exactly how this would be done?

    Not asking anyone to do my hw for me... this is actually a very, very simple...
  17. Replies
    6
    Views
    19,160

    Easier than downloading: #include ...

    Easier than downloading:

    #include <stdio.h>

    float amp;
    int note;
    int main()
    {

    // the part directly below is the "parameter input" part:
  18. Replies
    6
    Views
    19,160

    Thanks! system () is really useful... But I...

    Thanks! system () is really useful...

    But I still can't get the second half of the code to compile a new file and run... any ideas??
  19. Replies
    6
    Views
    19,160

    Run command line code from within my c code.

    Hi all,

    I'm very new to C programming, and currently working on an assignment for week 1 of class.

    Trying to get a little ahead by figuring out a way to execute a command line code from within...
Results 1 to 19 of 20