Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trim bar like the GarageBand and iMovie ones

I'm creating a Mac app which needs a trim bar like the GarageBand and iMovie ones. I need a library to get the audio waves to draw them on a NSView. Anyone knows a good library for that?

I think he was referring to the track editor (cut/copy/paste/move). enter image description here

like image 337
Fernando Valente Avatar asked Dec 14 '10 11:12

Fernando Valente


People also ask

Where is the trim tool in iMovie?

Trim unwanted frames using the shortcut menu In the iMovie app on your Mac, press and hold the R key, and drag across a clip in the timeline to select the range of frames you want to keep. Control-click the clip, and choose Trim Selection from the shortcut menu. The clip is trimmed to the boundaries of the selection.

How do you use GarageBand and iMovie together?

In iMovie, open your existing project from the library, or create a new one. Once you are in a project, select File, then Import Media. Find your exported project from GarageBand, and then select it. Click Import Selected to bring it to your Project Media.

How do I trim audio in iMovie?

In the iMovie app on your iPhone, open a movie project. In the timeline, tap the audio clip (in blue or purple) or the background music clip (in green) you want to adjust. Yellow trim handles appear. Drag the trim handles at either end of the clip to the points where you want the audio to begin and end.


1 Answers

There's a cool blog post on how to draw Waveforms by the author of the Capo audio editing software:

http://supermegaultragroovy.com/2009/10/06/drawing-waveforms/

I wrote Cocoa (Mac) code based on that, and it's not too hard. You can find that code here:

https://github.com/uliwitness/UKSoundWaveformView

Though it's far from a finished, shippable editor, it's under a permissive license (zlib) and could easily be used as a basis for a full editor.

like image 118
uliwitness Avatar answered Nov 15 '22 17:11

uliwitness