Sound Loop with a button

So I used the tutorial on this page to make a button that
turns sound on and off (it is the only one I could find that
actually works):
[URL="
http://www.entheosweb.com/Flash/flash_sound_button.asp"
But the only problem with it is that the sound does not loop.
I've found scripts that make sound loop, but I can't figure out
where to put it into this code.
PLEASE HELP ME! This was supposed to be done last week, and I
don't like telling the customer that I don't know how to make his
sound loop!
Please tell me how to fit it into this code because I don't
want to make a whole new sound button. Thank you!

The movie that you linked to will only stop the sound that is
playing. Further that sound is set to only loop 7 times, so it will
stop after a little more than a minute in any case.
Have a look at this variation that I built using the existing
content. It's much simpler and actually does what you want:
http://www.ddg-designs.com/downloads/soundControl.zip

Similar Messages

  • How do I create a sound loop with Garageband?

    Probably a simple question, but I'm very new to Garageband. I'm trying to make some sound loops to use as looping background music for a Flash website. How do I import an mp3 from my iTunes and the cut it down to a 10 second or so snippet, then have it loop for the background music? I'm guessing I want to export it as an mp3, correct?
    Any help is greatly appreciated!

    Hi
    An Audio region is the name of a rectangle in GB that represents the audio file.
    It's like a Bar that contains the data. The data can be audio or MIDI. So, drag the top right means place the mouse cursor over the top right corner of the bar and click-hold and drag... like you would drag a window or a picture to resize it in other applications.
    At the end of the Time Ruler is an arrow pointing left you can drag. This sets the end of the project. So drag it to where you want it to end (exactly where the region ends)
    or click on the two arrows looping (in a circle) button in he Transport bar at the bottom. This creates a cycle region (yellow bar in the Time Ruler). Drag and resize this to include only what you want:
    and choose Share > Export Song to Disk.
    There is a good offer on you might be interested to learn more about the basics and some of GB and other applications:
    https://www.macprovideo.com/trial/?st=7df&login
    This gives you FREE online access for 7 days to all the tutorials at macprovideo. I think you need to register and cancel before the 7 days is up if you don't want to continue the subscription. The tutorials for GB and other programs are very high quality so I didn't take the online sub offer but I buy and download the ones I want.
    JG
    Message was edited by: JG99

  • Stop dependant while loops with 1 button

    Hi,
    I am developing a utility that allows a user to configure up to 2 devices (both use same driver with a different board number), click initialize, which then brings up a file dialog and displays arrays for the data to be collected and some error messages for each measurement.  The user then clicks the Start/Stop button to begin collecting and logging data.  Currently i have a Wait(ms) block to allow the user to set often the measurement should be made.  Currently the Start/Stop button allows collection to be started, paused, and started again.  My problem is trying to have a master stop button that should stop all loops immediately when it is pressed.
    I tried using a global variable for the stop button, but the measurement and logging while loop doesnt stop until after the wait(ms) block times out.  Can anyone give suggestions.  If i need to restructure the VI into different loops, I can do that.  I just want to understand the right way to program something like this.
    The VIs are attached.  I removed the device specific measurement VI so that anyone can open the vis and run them to see how it works.
    Attachments:
    2Devices_withoutMeasurementVI.vi ‏112 KB
    BuildOutput.vi ‏27 KB
    stopGlobal.vi ‏5 KB

    Ok.  I had a chance to take a look at your code and I think you don't quite understand the concept of "dataflow".  Let me see if I can help.
    First of all...when I refer to your upper structure, I am referring to the first while loop, sequence structure, and subsequent while loops.  When I refer to your lower structure, I am referring to the while loop containing the event structure.  Just so we get our terminology straight.
    I believe that you are under the illusion that your upper structure contains three parallel while loops.  It does not.  It contains three SERIAL while loops.  There is dataflow dependency between the while loops.  The sequence structure requires data that is not available until the first while loop has finished executing, so the sequence structure cannot start executing until the first while loop has terminated.
    The second while loop requires inputs from the first frame of the sequence structure (which, by the way, you don't need and should get rid of...the sequence structure, I mean), so it cannot start executing until the first frame of the sequence structure has terminated.  The third while loop requires inputs from the second while loop...so, again, the third while loop cannot run until the second while loop has finished executing.
    Now, for your stop button.  You have that global stopping all three loops.  So here's what is happening in your program:
    Your program starts.  The first while loop executes in parallel with the loop which contains the event structure.
    At some point you press the "stop" button.  Both the first while loop and the loop containing the event structure finish executing.
    The first frame of your sequence structure executes.
    The second frame of your sequence structure executes.  The second while loop reads the "stop" value from the global, so it executes once and then finishes.
    The third while loop starts executing.  Again, the loop reads the "stop" value from the global, so it executes once and then finishes.
    Then your program terminates.
    You need to restructure your program, because right now it doesn't make any sense at all.  Your block diagram would benefit from some serious tidying up as well, your wiring is a mess.  I suggest you look into a state machine architecture for this program.

  • While loop with stop button within event structure locks up front panel.

    I am not sure if this is a bug with my program or a bug within LabVIEW.  If you believe that this is a bug with my program then I will post my program to be looked at.
    The problem I am having is there is a while loop within an event structure that fires when a particular value changes.  Once the "Activate" button is pressed the while loop within the event structure starts going with a polling frequency of 1hz (1000ms wired to the "wait till next ms multiple" vi).  There is a "Deactivate" button that is wired to the stop control of the while loop and an outter while loop that resets the event structure so that the activate button is being listened to again.
    Once inside the while loop, however, none of the button are responsive within the front panel.  The VI continues to run, and only 60% of my CPU is being consumed, but none of the button or scroll bars work.  The only way for me to terminate the program is with the "Abort" button next to the "Run" button.  If I remove the event structure so that the while loop in question runs as soon as the program starts, the front panel remains responsive.  I've inserted probes within the while loop and verified that it is not running prior to the "Activate" button being asserted, and it is running after the assertion of the "Activate" button with the expected polling frequency set by the "wait till next ms multiple" vi.
    Can anyone help?  Do I need to post my code?
    -Nic

    It is typically not a good idea to stall an event structure by placing loops inside event cases. What good is an event structure if it is not free to repond to events?
    Have a look at some alternative solutions, such as in the following link:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=224817#M224817
    LabVIEW Champion . Do more with less code and in less time .

  • Stopping a while loop with a button in cvi

    Hi people,
    I am a newbie with CVI but I have used LabView Heaps. The issue I have is I want to be able to use a toggle button or a command button to stop a while loop. I used GetCtrlVal on the toggle before the while loop. I then enter the while loop and then GetCtrlVal at the end to see if the button has been pressed. The issue I have is that once I enter the loop I am unable to press any buttons on the Panel. I would normally have put a delay in the loop but the issue is I am wanting to control a robot in "realtime", thus any delays in the program results in the robot moving further than what I wanted it to. Any ideas? If you have any suggestions that would be much appreciated thank you.

    This should be in the CVI group but...
    At the tail end of your while loop add a call to function ProcessDrawEvents():
    When your program executes in a callback function or in code that does not call RunUserInterface or GetUserEvent, LabWindows/CVI does not update the user interface. Functions that are overly time-consuming can "lock out" user interface updates. To allow LabWindows/CVI to process these updates, call ProcessDrawEvents.

  • Counting with a button

    Hello,
    I'm new to labview and i stuck with my program!
    I want to control a for loop with a button. so i want every time i press the button the loop count is increased by 1.
    Thnx

    A couple of things:
    1) I would suggest sending the data in a cluster instead of an array
    (actually, it is best for an array of clusters).  It is more
    straight forward to read sets of data (single element of array then
    unbundle).
    2) Why limit the number of time steps?  If I want the temperature to change every hour, why not allow such a thing?
    3) Thermostats are usually continuous (i.e. the stop time from the first step is the start time of the second step, etc.)
    The two vis attached are two suggestions as to how to start your program.
    Message Edited by Robert.Bedford on 09-22-2005 07:59 AM
    Attachments:
    schedule.vi ‏44 KB
    schedule2.vi ‏45 KB

  • Freeze on blank screen with sound loop  when playing steam games

    Hi,
    I would really appreciate some advice. I've been troubleshooting this problem without success,
    Problem:
    Playing games on steam*, at some point, sometimes 5 minutes in, sometimes 2 hours in:
    - Screen goes blank,
    - last sound loops continuously,
    - computer completely unresponsive, requires hard shut down
    - On restart I get almost the same report every time, though sometimes it referes to CPU 0 and sometimes CPU 2, a sample:
    Sat Feb 26 12:16:44 2011
    panic(cpu 2 caller 0x9cdbfa): NVRM[0/1:0:0]: Read Error 0x00000100: CFG 0x0a2910de 0x00100000 0x00000000, BAR0 0xc0000000 0x7f4cd000 0x0a5480a2, D0, P3/4
    Backtrace (CPU 2), Frame : Return Address (4 potential args on stack)
    0x5bdd3888 : 0x21b50c (0x5d4438 0x5bdd38bc 0x223974 0x0)
    0x5bdd38d8 : 0x9cdbfa (0xbe32bc 0xc53940 0xbf2424 0x0)
    0x5bdd3978 : 0xae8640 (0x93d7004 0x9a47004 0x100 0x2b0a6c)
    0x5bdd39c8 : 0xadf639 (0x9a47004 0x100 0x5bdd39f8 0x9bd6d7)
    0x5bdd39f8 : 0x16bd9ce (0x9a47004 0x100 0x438004ee 0x2b0a6c)
    0x5bdd3b38 : 0xb072bd (0x9a47004 0x877d004 0x0 0x0)
    0x5bdd3b78 : 0x9d6e63 (0x9a47004 0x877d004 0x0 0x0)
    0x5bdd3c18 : 0x9d346f (0x0 0x9 0x0 0x0)
    0x5bdd3dc8 : 0x9d533e (0x0 0x600d600d 0x702a 0x5bdd3df8)
    0x5bdd3e98 : 0x969582 (0xc1d00010 0xaa910001 0x20802040 0x5bdd3ee0)
    0x5bdd3ef8 : 0xd294eb (0x940e800 0x5bdd3f4c 0x0 0x7)
    0x5bdd3f58 : 0xd29696 (0x93c7000 0xd30b54 0x5bdd3f78 0x2a358d)
    0x5bdd3f78 : 0x22fd09 (0x93c7000 0x0 0x5bdd3fc8 0x227966)
    0x5bdd3fc8 : 0x2a06cc (0x863ea0 0x0 0x10 0x0)
    Kernel Extensions in backtrace (with dependencies):
    com.apple.driver.AGPM(100.12.19)@0xd26000->0xd30fff
    dependency: com.apple.iokit.IOGraphicsFamily(2.2)@0x938000
    dependency: com.apple.iokit.IONDRVSupport(2.2)@0x95a000
    dependency: com.apple.iokit.IOPCIFamily(2.6)@0x927000
    com.apple.nvidia.nv50hal(6.2.6)@0x1587000->0x199bfff
    dependency: com.apple.NVDAResman(6.2.6)@0x967000
    com.apple.NVDAResman(6.2.6)@0x967000->0xc54fff
    dependency: com.apple.iokit.IOPCIFamily(2.6)@0x927000
    dependency: com.apple.iokit.IONDRVSupport(2.2)@0x95a000
    dependency: com.apple.iokit.IOGraphicsFamily(2.2)@0x938000
    BSD process name corresponding to current thread: kernel_task
    * This also happened one time when using photoshop
    What I have tried:
    - updating steam and OS X
    - closing all apps besides steam
    - disabling Vsync in the games
    - running games in very low quality
    - updating to latest flash beta (steam uses flash for in-app advertising)
    - reinstall steam and redownload and reinstall games
    - verify and repair disk within OS
    - SMART check, RAM test, Video memory test with TechTool Pro, all Pass
    - removing peripherals ie. Microsoft bluetooth mouse
    - hardware test with OS X install DVD on reboot, detects no problems
    - stressing the GPU doing intensive 3D effects in Adobe After Effects, no crash
    - stressing GPU using CINEBENCH, no crash
    - monitoring temp with Temperature Monitor, Last crash GPU was at around 80 and CPU at around 85
    System
    mid 2010 MBP
    15 inch with Hires display
    i7, 4 GB RAM, Nvidia GT330M card
    OS X 10.6.6
    *Other points*
    - Machine is still under 1 yr warranty
    - I'm overseas studying design and I really cant afford to to take it in and not have a machine for 2 weeks. I'd really like to exhaust all options before taking it in. I'm also worrying that they will run the hardware test as I did and tell me: no problems found.

    I'm so ****** off that it's been weeks and no solution has been provided for this.  In the middle of video editing, watching quicktime videos, youtube, or playing any games the computer hard freezes with a black screen and looping audio of about 1/2 second.
    FIX IT!

  • MSI 7870 TF 2GD5/OC black screen with sound loop

    hello,
    Im getting the black screen with sound loop during the gaming. i have to shut down pc.
    in win log is no info about problem, just that the win was not shuted down correctly..
    no matter whats type of game, sometimes after 15 minutest sometimes after 4 hours.
    no matter on card temperature.
    tried reinstall windows, tested on all driver versions for 7870 from amd, but still same...
    found an article about this
    http://w w w .behardware.com/news/12705/black-screens-and-radeon-hd7870-a-solution.html
    now the card is in RMA

    Then ask MSI: >>How to contact MSI.<<
    This is a Users-to-Users Forum

  • How to stop While Loop in Event Structure with same button?

    Hello,
    I have a problem. I want to use one control to activate an event in a event structure, and the same control to terminate a while loop in that event.
    It is possible to use 2 controls to do this, but I need it to be only one.
    Thank you  
    Message Edited by Heinen on 02-19-2009 06:16 AM
    Message Edited by Heinen on 02-19-2009 06:20 AM
    The Enrichment Center is required to remind you that you will be baked, and then there will be cake.
    Solved!
    Go to Solution.

    Hello,
    I have a bit different problem.
    I have a tab control, with several buttons on different pages.
    In the current situation, we can talk about two pages, where one page ("Settings") in the Image, has a START and EXIT button, while second page ("Wait") has an EXIT button.
    In a while loop, I have event structure, which handles events of the START and EXIT buttons of the Settings page. This is fine. But I also want to control the Exit button of the Wait page.
    The control works like this:
    When I click on Start in the Settings page, the front panel shows Wait page and attempts to connect to a datasocket server on the remote computer. If the user wants to stop this process, he can click on Exit on Wait page too. But, this doesn't give any immediate effect. On the even of Start button, the front panel is not locked, so the user can actually click the Exit button on the next page when it's visible. But it's of no immediate effect. Means, what the LabVIEW does is, finishes the execution of event in Start button's click, and while this executes, it doesn't consider the Exit button's refreshed value (shown in Red circle in the block diagram).
    Simple question: Is there any way to check the updated (latest/live) value of a control during some event's execution? Or if I write an Event "Value Changed" for the Exit button and pass it to some variable. Is it the only solution?
    Thanks ahead.
    Vaibhav
    Attachments:
    terminate event_diagram.jpg ‏200 KB
    terminate event_front_1.jpg ‏63 KB
    terminate event_front_2.jpg ‏63 KB

  • How do i fix the sound on an iPhone 4S? When i play music the sound bar at the bottom disappeared and when i try to adjust sound with the buttons on the side, nothing happens. Also the sound in my apps is not working.

    The sound isn't working. And it also does not appear, when i try to adjuct it with the buttons the sound bar doesn't appear and when i try playing music at the bottom the sound bar disappeared. How do I fix this?

    Basic troubleshooting steps clearly outlined in the User Guide are restart, reset, restore from backup, restore as new device.  Have you gone through ALL of these troubleshooting steps?
    If you have gone through all the troubleshooting steps and you're still having problems, you'll need to bring your phone into Apple for evaluation.

  • HT2736 I was sent a code with redeem button & I get in a loop of Redeem to Sign in. I never get to redeem the code.  I am already signed in.

    I was sent a code with redeem button & I get in a loop of Redeem to Sign in. I never get to redeem the code.  I am already signed in.  What can I do to solve this?

    Hi kvnkines,
    Welcome to the Support Communities!
    The article below explains how to redeem an iTunes Gift Card.
    The terms and conditions are usually printed on the back of the card.
    If you have a specific question about a card, follow the information in the articles below to contact iTunes Store Support.
    iTunes Store: How to redeem a code
    http://support.apple.com/kb/ht1574
    If you have trouble redeeming your code, this article may help:
    iTunes Store: Invalid, inactive, or illegible codes.
    http://support.apple.com/kb/TS1292
    Cheers,
    - Judy

  • Reset while loop with time and button?

    I am trying to get the while loop to stop and reset with a button or if time runs out. So when I switch the button it should stop the indicator; when I switch the button back on it should reset the time and start reading data again. Likewise, when time runs out it should stop the indicator and I want to flip the switch to start a new run and reset the time again. I have attached my vi for some clearification. If you have trouble understanding please let me know and Ill try and explain more. Thanks.
    Attachments:
    reseting_time_whlloop.vi ‏70 KB

    Relient wrote:
    I know my program is not efficient at all, Im inexperienced with labview and my company needs it soon so I'm trying to get it out quick. Attached is what I have so far. It is very messy!!  However it is nearly working how we want. The producer/ consumer design is needed because I am implementing this into my other program and each loop  has a different job than the other loops. This is just a mock version as I am trying to figure out the process.
    The stop buttons aren't needed but the button labeled boolean should reset the time and stop the run. When the run is stopped I want to re-enter a 'test time' and hit the button again for a new run. I just need to be able to reset the original time... Is the producer/consumer the best way to connect while loops because it seems messy?
    Again sorry if it is hard to follow and if its not the best way to go about it; I'm doing the best with what I know. Thanks for the help.
    I realize you may need this soon but you will regret it later (or the next person to touch this code) when you need to touch it again. It is overly comnplicated, messy and not very well designed. Doing a bad job quickly is never the right answer. A little extra time spent up front to do it right can save tons more time later on.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Sound recording with duration

    hi all ,
        i have some trouble about sound recording function.
    i want to have 30S duration of sound input recording and also , if the user click the finish button
    the recording will be stopped even it is still have time for recording.
    i have tried to use loop with timer to take the data for 1 second period .but it will show the error
    is there any other method to perform this function ?
    Thank you

    i have tried to use loop with timer to take the data for 1 second period .but it will show the error
    is there any other method to perform this function ?
    You are on the correct track here using a while loop and reading data in say 1 seconds interval. But try to skip the timer. Let the sound card do the timing details for you. Also use a larger buffer size for the sound card. You set the buffer size by the "number of samples/ch" control in the Sound Input Configure VI. Set this value to be at least 2 to 5 times larger than the "number of samples/ch" value used in the Sound Input Read VI. My guess is that you have a sound card buffer overflow problem.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Lock ups and sound looping!

    I remember reading something here about people having trouble with their systems locking up and then getting a loud static noise then a sound loop when playing games.
       I am getting this about 2-3 times a night now and it is driving me nuts, I do not have temp problems of any sort and I have all of the latest drivers for everything on my system.
      Any ideas?
    Specs in sig

    Set your PCI/AGP Freq to 66.66/33.33MHz.
    Increase your DDR Voltage to 2.7~2.8v.
    Check if you have any background programs causing all high CPU load times while gaming.

  • Sound "Looping" on 46G300U1

    Hi.
    I have a 46G300U1 which is connected to an AT&T U-Verse DVR via HDMI.  Periodically the sound "loops" or hangs in an infinite loop.  this problem is very intermittent and might not happen for days or might happen 5 times in an hour.  Only turning the television off eliminates the problem.  If I try to change inputs to clear the problem the TV reboots (Toshiba light and power light go off and then come back on).
    I've tried 5 different HDMI cables (high speed and 1.3) with no change in results.  I've tried a component cable and that resulted in a different issue - periodically the volume goes to maximum.
    Does anyone have an idea what's causing this and how to fix it?
    Thank you!
    Kevin

    Does it only happen from that source? Has it ever happened from a different source?
    Try disabling REGZA. From the "Setup" menu, select "REGZA-LINK Setup." Change "Enable REGZA-LINK" to "Off."
    - Peter

Maybe you are looking for

  • High Availability Options Without Enterprise Edition

    I think I've found the answer to this already but I just wanted to confirm that I'm getting this right. In SQL Server 2012, is there no way to implement a high-availability solution which doesn't require shared storage or use of a deprecated feature 

  • MWST Tax code

    Hi All, MWST condition type  is only available in Purchasing pricing procedure MM not in Tax procedure under FI. 1) How can i use this condition type & post value to VST key. 2) should i include MWST in Tax procedure also. Pls advise how to use this

  • Oracle Products needed to be installed

    Dear Sir, If I develop a softwae in Oracle 8i / D2K and need to implement that software in the client's place that has a Win NT Server 4.0 and several nodes (Windows 98) connected by LAN, what are the softwares that are required to be installed at th

  • I am having trouble with buying stuff on apps on m iphone4

    I put my voucher on itunes and currently have $20 on it but when I go to by anything on a pre-existing application, it is telling me that I need to download the application before I buy anything on it. But like I said, I already have the app on my ph

  • IPhone 2G random defect - "drawing too much power on USB"

    Good day, About three weeks ago, my iPhone - which then still had firmware 1.1.4 - lost almost all its charge and "died". It looked impossible to get it charged, the red battery icon was the only thing it showed. Only thanks to a tip from another for