Recognizing Markers in .WAV files

ok so I have a .WAV file where I have placed markers (
literally named Marker 1, 2, etc ) at different locations in the
file. I imported my .WAV into director 10. I have next buttons
where I want them, onDown to skip to the next marker in the .WAV.
What code do I use to do this?

You could start by grabbing the cuePointTimes list from the
WAVE file,
executing a findPosNear based on the currentTime of the sound
playing,
and set the currentTime to the next one found.
Something like the following might get you started (watch for
unintended
line breaks):
on mouseUp me
-- assume the sound file is playing in channel 1 (alter the
channelIndex to suit):
tSound = sound(1)
-- check whether the channel is currently playing a sound
if tSound.isBusy() then
-- get the currently playing #sound member into a local
variable
for faster re-use later
tMember = tSound.member
-- ditto its list of cue point (marker) times
cpTimes = tMember.cuePointTimes
-- how many cue points are defined
nTimesListed = count(cpTimes)
-- if there are *any*
if nTimesListed then
-- what's the current time of the sound playing
curTime = tSound.currentTime
-- what's the next listed cue point
tPos = cpTimes.findPosNear(curTime) + 1
-- if there is such an index in the cue point list...
if tPos <= nTimesListed then
-- ... then get its time
tTime = cpTimes[tPos]
-- and start the sound playing from here
tSound.play([#member: tMember, #startTime: tTime])
end if
end if
end if
end

Similar Messages

  • .wav file not recognized in Premiere 8

    I am trying to edit a video for which I am using a .wav audio file for the audio.  I have done this before with no problem.  Now Premiere tells me it does not recognize the .wav media file, and may be missing a codec. 
    When I go back to other projects I have done this way before, I find that I can't open the audio portion of ANY of them.  On the project, the audio line shows, but is flat-lined.
    Have I lost something.  FYI, I am combining audio from concerts (recorded on Pro-tools and bounced to a .wav file) with video of the same concerts recorded on two video cameras.  Then, I combine and synchronize to create a finished video with good sound and picture.
    Thanks for any suggestions!
    Thad Reynolds

    Thad,
    Welcome to the forum.
    With PCM/WAV, the Audio is not compressed, so this should not be a CODEC issue. One thing to note is that there is also LPCM/WAV, and for some reason, a few of the Adobe products have issues with the LPCM, where the PCM version causes no issues.
    I'd just run one of the WAV files through G-Spot (PC-only), or MediaInfo (PC, or Mac), and see what it says about the files.
    I also assume that you are on the Mac, considering that you mention ProTools. Is that correct?
    Were the older Projects, also with WAV files, created on the Mac, or perhaps another computer?
    In very general terms, PrE should work perfectly with PCM/WAV files at 48KHz 16-bit. These are uncompressed files, and are the native format for Audio in PrE.
    Good luck,
    Hunt

  • "Export audio of selected range markers to separate files" icon is grayed out in Markers window. Tracks show start times but no end times, yet duration is calculated.

    I have one big wav file of segued tracks as a mixdown and inserted CD markers where I want marked tracks. "Export audio of selected range markers to separate files" icon is grayed out in Markers window. Tracks show start times but no end times, yet duration is calculated. Why can't I export these marked portions as separate files?

    the markers durations need to be configured, there is an easy way to do this using your existing markers.  click the start time of marker 2, this should change to edit mode to type in a new number, just copy the numbers cmd/ctrl+c. then click the end time of marker 1 and paste, cmd/ctrl+v.  now repeat for the rest of the markers, and on the last one enter a value for the end time or click and drag on the duration to manually extend it. once all the markers have a duration, the button should be active to export.

  • Importing WAV files that have been modified with a sound editor

    I tried importing a WAV file to Itunes which I had modified with a fade out effect to remove talking at the end of the song. When I played the song back in Itunes (after importing), the edit effect was ignored. Is there a way to import songs into Itunes so modifications done with a sound editor will be recognized?

    Well, iTunes has no ability to undo edits, so the problem may lie elsewhere. Please try the following extra-extra-careful procedure:
    - Edit the file and save it.
    - Exit the editor.
    - Make sure you know filename/location of the edited file, and that you are not confusing it with some unedited copy of the same song.
    - Play the edited file in some other player than iTunes and make sure the edits are as you wished.
    - Now, add the file to your iTunes library.
    Pls try this and let us know.
      Windows XP  

  • Flash CS 6 has trouble importing .wav files

    Not sure what's up with that but it does. Very CLEARLY a bug. If I drag the files onto the Library, it will give an error for each file but then once it's imported each one it will then ask me if I want to overright it and then reimport it again. The audio is then ruined and can not be used. It has been garbled to sound like static.
    If I import them one by one, it does the same thing. If I try to import them all at once the program crashes.
    The .wav files play fine in any other program so it's not the files themselves. It is also repeatable.
    The ONLY thing that works is to batch convert them all to aif files via the Media Encoder but it's asinine to think that I have to do that by default each time.
    I am running Windows 7 64 bit with 8 gb of memory and an Intel Xeon CPU at 2.8 ghz

    Solved my own problem! In case anyone searches for this issue, the error happens when you save out an Audition file and select "Include markers and other metadata" at the bottom which crashes the import every time for me. Unchecking that stupid thing fixes the import error. It is repeatable on multiple computers in our office as well so it is indeed a fix.

  • Is there ant difference of "wave" file between OSX with Windows XP

    Hi!
    I made some sound effects with Sound Track Pro 2,and save it to *.wav,but I found when I put it into Windows XP,It can be played by Windows Media Player,but can not be recognized by our game Engine.
    I'm a developer of game company!
    And same sound I use the Sound Forge convert to wave file,so it can be recognized.So strange.
    So,anyone can help me with this.Thanks

    I had a problem recently where I couldn't open 32 bit WAVs on my Mac which were created in Adobe Audition. To cut a long story short, Audition uses (or used) a proprietory 32 bit format called 16.8 bit float which is now defunct. I had to convert these before OSX would open them, but this was a bit of a one-off and I've never had any other problems with using the same WAVs on Mac/PC.
    That Windows Media Player in XP opens the WAV before conversion means it is not entirely the OS that is the root of the problem.
    Just for information, I do know that Wave Editor in OS X appends some additional metadata to WAVs on opening.

  • Help in creating 3 voice .wav files from 1

    I am trying to use Audition to record news in just voice format.  I would like to record 1 track and then be able to split or cut/paste sections of the long track into 3 separate tracks to be saved as 3 separate .wav files.  How do I do this easily?
    As well, when I am recording, I make some mistakes along the way and would like to toggle off the recording, then toggle it back on at the point where I made a mistake and continue on, while leaving a marker at the spot where I made the mistake.  That way I can come back and edit the track where I made the mistakes, which could easily be found because of the markers.  I can't figure out how to do this.  Whenever I record a track and make a mistake, if I hit the spacebar, it stops the recording and goes back to the beginning of the track.  I don't want that.  I want to be able to stop the recording, then restart AT THAT SPOT moving forward with recording the rest of the track....then when I am finished, I can come back and edit the part where I made a mistake.  Help please?

    There are several different ways to do what you want in your first question and split tracks away.  Here's how I do this, but YMMV and you may prefer a different way suggested by somebody else.  First, very important, with a file like this, do not edit the only copy, because it's easy to screw up and save and close a file without realizing that you deleted critical material you still wanted. So start by going to File>Save Copy As and making a copy of the original file with a distinct name, and edit from there.  What I do is highlight the material I want to split away (dragging the mouse over it), then right-click the highlighted material, and click Save Selection (or File>Save Selection), then Cut to remove that fragment and continue editing what's left.  It's important to note that you want Save Selection, not Save; otherwise, it just resaves the entire file and not the highlighted selection.
    I don't have an answer to your question on how to save a marker in a specific spot.  I don't think Audition 1.5, which I'm working with, has that feature (though I've wanted that feature, too) but maybe AA3 does.  Somebody else will know.  What I do during playback that I'm allowing to continue is click on the graph to move the horizontal, dashed yellow line to a point I want to come back to, but that's only a temporary measure and one-of-a-kind, and I think you're looking for something more enduring and allowing multiple mark-ups, when there's only one of those start-point lines. The other thing I do is keep a list of approximate playback points with pencil and paper.
    Hitting the spacebar during playback is the equivalent of clicking the Stop button in the bottom left with your mouse.  This will reset playback to the cursor, as you saw.  Instead, you want to click the Pause button with your mouse.  Then you can hit the spacebar to resume playback where you paused, or click the Play arrow with the mouse (same thing).

  • How do I change the key of a wav file?

    I'm using Apple Loops Utility and the wav file plays the correct key & tempo there. But when I save it, and open it up in LE or add it into the arrangement, it's playing the original key? The only thing that is correct is the tempo. Can you change the key and save the change using Apple Loops Utility?

    I'm confused. Are you saying that in Apple Loops Utility the wav plays in the key and tempo of that wave, but when you add the same wav to LE it plays in a different key? You said in LE it plays in the "original" key. Seems like that is what you would expect. I would think it would play in the "original" key in both ALU and LE.

  • Placing 24/192 WAV files on iTunes for playback through Wadia 170 iTranspor

    I record live music on a Sound Devices 722 digital audio recorder at 24/192 as WAV files. I can import the 24/192 WAV file into iTunes on a Mac and the bit rate is displayed as 9216 kps. This makes sense since 24x192=9216. When I click on the song in iTunes it plays back at the correct tempo.
    I bought a Wadia 170 iTransport since it says it will output bit perfect digital files. I'd love to hear my recordings this way over my sound system. I understand that this would chew up drive space real fast on an iPod. However . . .
    I can't get my iPod to accept the 9216 kps song files. I went to set iTunes / Preferences / Advanced / Importing to WAV but the options for sample rate only go up to 48.0 kps and the bit rate up to 16-bit.
    Any thoughts or suggestions on how to overcome this will be appreciated.

    Hi,
    I'm from germany so no 'best buy' but I think I will lock around sleeve/bag for a different product with same measures. Any tip?
    The clear plastic case is not what I want. I would like to use the player without such protections. I just want a sleeve to protect the player while its in my jacket/pants.
    Btw, i have bought this version: Creative Zen (maybe european version?). I also doesn't seem to have your mentioned sleeve. I also couldn't find it on the website.
    Anyway, thank you,
    Chris

  • Broadcast Wav files from PT to Logic not moving to original record position

    Okay, my system needs upgrading but I'm stable (at least I think I am til now!) I have a TV network sending me broadcast wav files from PT. They shoot their video on a 24 hour clock. I'm to be editing and mixing (in Logic) their audio tracks from PT and send them back as broadcast wav files for them to sync back to their video. After years and years of recording and producing music, this TV world is a first for me. 2 issues at hand that are causing trouble.
    NUMBER 1: The wav files will not snap to original record position. I keep getting an error message about "out of range" and of all craziness with a negative SMPTE number. ??? The prompt suggests an offset error. But there isn't I can find. Start time is set to 0:0:0.0.0 here and at the TV studio. They film at 29.97d. That matches as well. Sample Rate is correct at 48k 24bit. I've uncovered every thing I can think of. I did have to set the tempo down to 5 BPM in order to see a full 24 hours in SMPTE.
    NUMBER 2: I can't figure out how to see the timestamp start time of the audio files in the audio window. I have every option turned on in the VIEW option, I can see length, but I see nothing about start time of original record time. Am I missing something simple here? Seems like a very standard option that should be easily accessible. It would allow me to prepare the location on the time line.
    Overall, I'm hoping I can do all the above with my current rig but realize that the clock is ticking toward a whole new system with Logic 9.
    Help please. Don't want to lose this client.

    Sure do appreciate everyone's willingness to help. Setting SMPTE start to 24:00:00.0.0 didn't work either. I confirmed with the studio manager at the TV station also that they run a 24hour clock with 0 being midnight.
    I'm really hoping that the error is on their end.
    *It would help me if anyone knew how to VIEW the Timestamp info attached to the wav files. That would at least give me an approximate idea of where they should be.*
    I'm supposed to be editing and mixing the voice dialog from numerous different scene takes that were shot throughout a day of filming. It's critical that I can see all these different takes that were captured over hours of open recording. Some of the files are almost 4 hours long. It's a big project and I'm sure hoping I can stay inside Logic to get it all done with excellence.

  • Wav files on external drive will not work in Apple Loops

    When I import wav files (from Nu Jazz Funk library) by dropping on the AL browser from an external drive, Apple Loops insists on copying them to my system drive (no option to make use current location). If I manually make an alias, the files show up, but play at the wrong tempo. I even tried letting AL make the copy, then moving that to an external drive & making an alias of that. No go. BTW, aif files work fine.

    Yeah, that's because Apple Loops are .AIF files, not .WAV.

  • Tempo problems with imported wav files

    Hey everyone, sorry if there's a quick fix for this in the forums that I couldn't find, but I've been having some tempo problems with imported .wav files.
    Long story short, my system couldn't handle playing all the tracks for a song while recording drums, so I bounced out an mp3 of the song and put it in a new Logic file so my drummer could just play along to that as I recorded him. Unfortunately, the original song is at 167 bpm, but I forgot to change the bpm in the new Logic file with the .mp3 file of the song to 167 bpm, so it was left at the default 120 bpm.
    So, the drums were recorded at the correct 167 bpm, but Logic thinks that those new drum .wav files should be played at 120 bpm, so when I import my drum tracks back into the original file, they do not play correctly at all.
    I could get record it all again, but I wanted to check if there was a way I could salvage what I already have, since my drummer lives about an hour away right now and can't just come over whenever he wants.
    Thanks for the help! I really appreciate it.

    Hi,
    First, do not use MP3 in Logic, the sound quality is less than AIFF, WAV or CAF, and Logic has to decode it for playback, making it a heavier burden on the CPU than an uncoded audiofile, such as AIFF, WAV or CAF.
    Secondly, audio files are independent of Logic's tempo. If you bounce down an audio file in any format (other than Apple Loop), it will play back at the same speed, +regardless of Logics' tempo setting+, either at recording or playback. Logic doesn't 'think' anything. The BPM is only important to MIDI tracks, or to the spacing between audio files. The audio files themselves *are not affected* by the tempo setting. If you import an audio file of tempo 167 into a 120 BPM project, the file will still play at 167, only Logic will indicate the wrong bar positions.
    regards, Erik.

  • Wav file from remix stem pack has no volume - Logic Pro 9

    I recently downloaded a remix stem pack and can't get the vocal wav file to play. It show's a wave form, but no volume. If I load a sample wav file, a drum hit for example, it will play no problem. Anyone have any idea's? It's not the wav file as it plays in itunes, and also plays in my friends logic pro.
    Thanks

    The hierarchy is [LOGIC FILE NAME]>LgDoc>(files ... Displaystate, DocumentData, Windowimage.jpg)
    Like this:
    You need to recreate the folder structure in order to be able to open the file.  (look at the path bar at the bottom of the picture.)
    Do not disassociate the displaystate from the documentData files.  They should be together.  The windowimage file is optional and will be recreated when the file is saved again.
    Hope this helps!

  • I am trying to enter a split point for a file going on a dual layer disc. There are chapter markers in the file but the automtic function doesn't see them. Can I insert a point for the layer split in DVD Studio Pro 3 or 4? It doesn't appear that the autom

    I am trying to enter a split point for a file going on a dual layer disc. There are chapter markers in the file but auto function does not see them. Went back and put a small split in the timeline in fcp and exported to mpeg 2 again and auto function does not see that either? Manual msays to manualy enter split poind in DVDSP but can't find any way to enter that split point in DVDSP? How can I manualy enter a split point in DVDSP 3 or 4?
    Elizabeth/Roger Cook Films

    This is definitely not the behavior I see.  When I left click it adds a marker,
    When I right click, I see the following
    Do you have any OS hacks installed on your computer or have you changed the mouse behavior in system preferences:  mouse?  If not, I'd suggest you run digital rebellions preference manager and reset your dvdsp preferences. 
    https://discussions.apple.com/docs/DOC-2491

  • How can I open a WAV file in LabVIEW 7?

    I need to make a program that opens a WAV file and converts it into amplitudes values and saves the in a .txt file. But how can I make LabVIEW 7 open up a WAV file? It's probably easy, but I didn't come up with anything up to now!
    Thanks in advance!

    try this
    regards
    timo
    Attachments:
    wav2txt.vi ‏17 KB

Maybe you are looking for