Last visit was: It is currently Thu Mar 28, 2024 2:19 pm


All times are UTC-05:00




Post new topic Reply to topic  [2 posts ] 
    Author Message
     Post subject:Beep project
    PostPosted:Fri Mar 07, 2008 5:57 pm 
    User avatar
     

    Joined:Sun Feb 12, 2006 8:56 pm
    Posts:1019
    Website:http://eddieringle.com
    Location:Detroit, MI
    I already have a small beep program on my website, but I've taken it further.

    Now, the code will only work on windows machines because it uses a windows system interface to access the speakers.

    My program can do 2 things:
    1. Allow you to make your own small songs through the pc speaker.
    2. Play premade songs from a file.

    Now, I have EVERYTHING working exactly how I want it. But I am having trouble with a feature I want to add.
    Basically, all you can do now is tell the program which notes to play, but you cannot tell it the duration you want the notes played.

    I want to know if there is a way to load from a file and put data from that file into two seperate variables, perhaps like:
    Code:
    notetoplay,duration
    So the program would take notetoplay and store it in a note variable, and do the same for duration. And the comma would be the delimiter for each line.

    I was thinking of doing an array, but I am not exactly sure how to do this.

    If you need any more information then I will post it.

    _________________
    -- Eddie Ringle

    Check out Elysian Shadows and consider backing us on Kickstarter!

    ====================================

    Image


    Top
    Offline  
     Post subject:Re: Beep project
    PostPosted:Sat Mar 08, 2008 4:44 am 
    External Project Staff
    User avatar
     

    Joined:Sun Oct 30, 2005 3:40 pm
    Posts:371
    Website:http://idlesoft.net
    Location:~/
    strtok or explode (explode is very memory-leak sensitive, if you don't code correctly, but I like it)

    _________________
    -- ChaosR

    Image


    Top
    Offline  
    Display posts from previous: Sort by 
    Post new topic Reply to topic

      All times are UTC-05:00


      Who is online

      Users browsing this forum: No registered users and 11 guests


      You cannot post new topics in this forum
      You cannot reply to topics in this forum
      You cannot edit your posts in this forum
      You cannot delete your posts in this forum
      You cannot post attachments in this forum

      Search for:
      Jump to:  
      cron
      Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
      Theme created by Miah with assistance from hyprnova