Page 1 of 2

MP3 Splitter

Posted: Sat May 13, 2006 7:18 am
by Robgwilliams
Hi,
Is there any chance we can put an MP3 Splitter into Media Monkey.
I am a DJ and record all my mixes onto my computer.
It would be really helpful if there was Mp3 Splitter.
Thanks
Rob

Posted: Sat May 13, 2006 7:28 am
by Steegy
MP3 splitting has been requested before, but is very low on the priority list. The reason is that there are very good specialised programs for that, which can be used along with MediaMonkey.

You can start an external mp3-splitter from within MediaMonkey, for the selected song(s).
If you then let MM's "file monitor" monitor the output folder for your splitted files, they will automaticly be added to the MM library.

Cheers
Steegy

Posted: Sat May 13, 2006 1:21 pm
by mjs93
I wholeheartedly agree with this request, it would be great to have an internal splitter.

Posted: Sat May 13, 2006 1:34 pm
by Steegy
What's the mp3 splitter program that you currently use?

Posted: Sun May 14, 2006 4:36 am
by trixmoto
If you found an MP3 Splitter application that could recieve the appropriate command line arguements, a script could be written to interface between MM and this application.

Re: MP3 Splitter

Posted: Sun May 14, 2006 3:22 pm
by rmfinch95616.myrealbox.co
Robgwilliams wrote:Hi,
Is there any chance we can put an MP3 Splitter into Media Monkey.
I am a DJ and record all my mixes onto my computer.
It would be really helpful if there was Mp3 Splitter.
Thanks
Rob
I'll second this request, and not at a low priority. Sometimes I get large mp3 which really are multiple tracks in one big file; an obvious chore for MM to split apart. Or at least give a clue as to which specialized splitters will work and how to set them up with MM.

Posted: Sun May 14, 2006 3:59 pm
by Steegy
As suggested by Steegy and Trixmoto above, I suggest we all look for a suitable external mp3 splitter with command line support.
Once it's found, it can easily be used together with MM.

Cheers
Steegy

Posted: Sun May 14, 2006 4:57 pm
by Bex
Perhaps this one could be used?
http://mp3splt.sourceforge.net/mp3splt_page/home.php
Supports mp3 and ogg.

/Bex

Posted: Sun May 14, 2006 5:33 pm
by Steegy
Ahaaaaaaaaaaa!!!

Finally found (back) what I was looking for: mp3DirectCut ( http://www.mpesch3.de/ )

Small & fast (not in Java :D)
It only supports mp3 (all layers, so also mp2).

Install it to folder "C:\Program Files\mp3DirectCut" and use the following Auto-script from within MediaMonkey
(how to install scripts?: http://faq.mediamonkey.com/index.php?ac ... artlang=en )

Mp3Splitter.vbs (for the Scripts\Auto folder):

Code: Select all

Option Explicit

Sub onStartUp 

   Dim CMIArray
   CMIArray = Array(SDB.UI.Menu_Pop_TrackList, SDB.UI.Menu_Pop_NP, SDB.UI.Menu_Pop_Tree)
   
   Dim i, MI
   For i = 0 To UBound(CMIArray)
	  SDB.UI.AddMenuItemSep CMIArray(i), 0, 0
	
	  Set MI = SDB.UI.AddMenuItem(CMIArray(i), 0, 0) 
	  MI.Caption = "Split this mp3"
	  MI.OnClickFunc = "RunSplitter" 
	  MI.UseScript = Script.ScriptPath 
	  MI.IconIndex = 38
   Next

End Sub 

Function RunSplitter(arg) 

  Dim WShell, Result, Command

  Command = """C:\Program Files\mp3DirectCut\mp3DirectCut.exe"" " & SDB.SelectedSongList.Item(0).Path 

  Set WShell = CreateObject("WScript.Shell") 
  Result = WShell.Run(Command, 1, 0)

End Function 
It adds "Cut this mp3" to the track's context menu.

mp3splt is kind of big and slow, but might be the alternative if mp3DirectCut is not good enough. mp3splt gui doesn't seem to take any command line options.

Other program suggestions are welcome.

Cheers
Steegy

Posted: Sun May 14, 2006 6:53 pm
by Bex
Splitting audio files seems not to be so straight forward as one can think.
http://www.hydrogenaudio.org/forums/ind ... opic=35654
There are more threads...

I dont know if the program provided in the link can be used.

/Bex

Posted: Sun May 14, 2006 7:21 pm
by Steegy
Well, I must say mp3DirectCut is very easy to use, if you take a minute or 2.

I just made a cue file and splitted a mp3 file to test.
I also let the program automaticly split a fullcd using the "auto-detect silence" function. It's great, it's split the fullcd mp3 file in the correct places and I could store the splitted tracks that way.

For people who want to split a fullcd mp3 file (that has silence between the songs):
- Right-click the song and click "Split this mp3"
- menu Edit > Silence Detection...
- push the Start button and wait.
- push the close button. your cue points are indicated
-- menu File > Save split (to save the splitted parts in one folder)
-- menu File > Save cue sheet (to save the cue sheet for the fullcd mp3)

For songs_to_split that don't have silences, you'll have to split manually, which is very easy. You can navigate very fast and play to preview the song piece. If you want to create a cue point, just click on the graph place and push the "Cut" button. You can remove the cue point with the "Edit" button.
Already made cue/split points are acessible from the "List" menu, or from the "graphical trackbar" under the graphical sound display.


Anyone saying this is a difficult program:
- menu ? > Manual
- just test it with a test file, using the buttons on the front form (no menu entries are needed directly)
- read the above explanation to use the program very fast

Cheers
Steegy

Generic version of Steegy's script...

Posted: Tue Nov 28, 2006 12:30 pm
by tj_junk
The following is a generic version of Steegy's script. It can be easily modified to open a selected file into any external app using MediaMonkey's right-click context menu.

To use:
1) Create a new textfile in the "...\MediaMonkey\Scripts\Auto" folder.
2) Copy the code below into the new textfile.
3) Modify the "myAppPath" and "myMenuOption" constants as desired.
4) Save the new file with your desired VBS filename.
(I chose "RunAppFromContextMenu.vbs".)
5) (Re)Start MediaMonkey.

Code: Select all

'*******************************************************************************
'  RunAppFromContextMenu - 
'     Add a context menu option to open a selected track in an external application.
'
'  To use:
'     1)  Create a new textfile in the "...\MediaMonkey\Scripts\Auto" folder.
'     2)  Copy the code below into the new textfile.
'     3)  Modify the "myAppPath" and "myMenuOption" constants as desired.
'     4)  Save the new file with your desired VBS filename. 
'         (I chose "RunAppFromContextMenu.vbs".)
'     5)  (Re)Start MediaMonkey. 
'
'  Note:  This generic script was created from Steegy's more specific "Mp3Splitter.vbs"
'         (see "http://www.mediamonkey.com/forum/viewtopic.php?p=46830#46830")
'*******************************************************************************
Option Explicit 

Const myAppPath    = "C:\Apps\Music\Edit\Mp3trim\mp3Trim PRO.exe"
Const myMenuOption = "MP3Trim"
'*******************************************************************************

'*******************************************************************************
Sub onStartUp 

   Dim CMIArray 
   CMIArray = Array(SDB.UI.Menu_Pop_TrackList, SDB.UI.Menu_Pop_NP, SDB.UI.Menu_Pop_Tree) 
    
   Dim i, MI 
   For i = 0 To UBound(CMIArray) 
     SDB.UI.AddMenuItemSep CMIArray(i), 0, 0 
    
     Set MI = SDB.UI.AddMenuItem(CMIArray(i), 0, 0) 
     MI.Caption = myMenuOption 
     MI.OnClickFunc = "RunApp" 
     MI.UseScript = Script.ScriptPath 
     MI.IconIndex = 38 
   Next 

End Sub 
'*******************************************************************************

'*******************************************************************************
Function RunApp(arg) 

  Dim WShell, Result, Command 

  Command = Chr(34) & myAppPath & Chr(34) & " " & Chr(34) & SDB.SelectedSongList.Item(0).Path & Chr(34) 

  Set WShell = CreateObject("WScript.Shell") 
  Result = WShell.Run(Command, 1, 0) 

End Function 
'*******************************************************************************
By the way, I highly recommend MP3Trim. It is a very simple, yet highly effective program for editing mp3 files (e.g., removing silence, fade in/out, etc). Check it out at http://www.mptrim.com/.

Posted: Thu Mar 20, 2008 2:52 am
by steve0
"put an MP3 Splitter into Media Monkey. "It is a good idea.When could i hear those songs?

Re: MP3 Splitter

Posted: Mon Nov 15, 2010 9:40 pm
by Shrikant
Great! I used the above code to add a "Send to Bluetooth!"

Re: MP3 Splitter

Posted: Sat Nov 20, 2010 7:36 pm
by Eyal
Don't forget this External Tools script: ExternalTools v1.3 [MM2+3], also by Steegy.