Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: REACT 2 Released (Read 1276525 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

REACT 2 Released

Reply #325
Code: [Select]
@tools@\SED "s/$cdartist$ - $album$ - \(.*\)\.wav/\1\.flac/" <"@albumfile@.[mg].cue" >"$cdartist$ - $album$.cue"


Could you not use the form we used to replace the EAC name with the REACT name.  Or is this not an issue with Images? (I haven't used them)

REACT 2 Released

Reply #326
Frank vZ is ripping to an image and then using ACDIR to create tracks.  The image config has no way of knowing what the track names (or naming schemes) are.  The only thing that deals with track names is ACDIR, as it processes the cuesheet to split the image and add tags.

With this in mind, you could use a similar format if you created a SED command for each track via ACDIR (as mentioned in my previous post), but you would still have to hard code the initial format I think, as you have no track-based @basename@ to refer to ... off the top of my head.


BTW, while I'm here,  I played around a bit more with my idea for passing/parsing tags in the Artist, Album and Comment fields to create additional tokens (like @disc@, @discnumber@, etc.).

Unfortunately, getting it to work with Artist and Album in REACT is a bit messy, although it's simple with Comment.  However, accessing the comment field is not as easy as the Artist and Album fields, and it's length is limited, so I'm not sure about the use of that.

I did get it working with Artist and Album, but it involves: grabbing the values; getting the tags and storing them in a temporary text file; removing the tags before any processing starts (otherwise filenames are really screwy and a lot more work is needed); and finally, on encoding, reading the tags from the text file and adding them to any found in the comment.  As I say, a bit messy, although it does work.  I've uploaded a script demonstrating the possibilities (not within REACT - it's just a little dialogue that converts tags to values) if anyone is interested: react-tags.au3 (5KiB, needs AutoIt installed to run) and react-tags.zip (176KiB, compiled EXE - no need for AutoIt).  NB: I see newer versions of AutoIt have regular expressions inbuilt.  That would have been really handy.

I had another idea, regarding a hotkey that opens up a dialogue as part of REACT, in which you can specify other information - now I come to think about it a simple key/value list (pretty much like the foobar properties dialogue) would be most flexible, so you can create new tokens of any given name, with any given value.  I had originally thought of a dialogue that extends the Artist/Album/Genre/Year submissions, providing Discnumber/TotalDiscs/DiscName, etc. text boxes - but a key/value submission would be most flexible.  Perhaps a few key fields could be included with a key/value list for additional/bespoke tokens.  Dunno, just another idea to throw in the pot.
I'm on a horse.

REACT 2 Released

Reply #327
They seem to work and I prefer image mode since it works even if the last track is a data track. The trade-off is that the sed-commands are more "wildcardish".
If this turned out to be an issue you could stick with the syntax you have, but add the line to write the SED command to sedlist.txt as part of the ACDIR run.

I.e.:  ACDIR is already setting the console title and running FLAC for each track (2 separate commands).  You could just append "& <my command line>" to the end of the ACDIR call and the command would execute for each track (<set title> & <run FLAC> & <write to sedlist>).

I don't think this should ever be necessary though.  Just for interests sake.

I have just tried out these lines:
Code: [Select]
        @tools@\acdir.exe --overwrite --output "%TrackName%.flac" --extra-opt "|image/jpeg|||@cover@" --pipe "TITLE $n/$N flac $#T & @tools@\flac.exe @Opt_Flac@ %Cover_tag% %VA_tag% -T artist=$#a -T album=$#T -T title=$#t -T tracknumber=$n/$N -T date=$q@year@$q -T genre=$q@genre@$q -T comment=$q@comment@$q -T encoding=$qFlac @Ver_Flac@ @Opt_Flac@$q - -o $#o & ECHO s/$cdartist$ - $album$ - %TrackName%\.wav/%TrackName%\.flac/>>sedlist.txt" "@sourcecuesheet@"
        @tools@\SED -f sedlist.txt <"@albumfile@.[mg].cue" >"$cdartist$ - $album$ (noncompl).cue"
        DEL "sedlist.txt"

They worked out fine! 
To make them perfect, I would appreciate any hints about getting the 'FILE "'-part into the ACDIR options. I left it out because I didn't know how to include the quote... 

REACT 2 Released

Reply #328
Cool.

It should just be a case of using ACDIR's $q token.

Code: [Select]
ECHO s/FILE $q$cdartist$ - $album$ - %TrackName%\.wav$q/FILE $q%TrackName%\.flac$q/>>sedlist.txt

You could also swap REACT's tokens for ACDIR's tokens (not sure why):

Code: [Select]
ECHO s/FILE $q$#a - $#T - %TrackName%\.wav$q/FILE $q%TrackName%\.flac$q/>>sedlist.txt
I'm on a horse.

REACT 2 Released

Reply #329
This line finally rocks: 
Code: [Select]
ECHO s/FILE $q$cdartist$ - $album$ - %TrackName%\.wav$q/FILE $q%TrackName%\.flac$q/>>sedlist.txt

Unfortunately, I couldn't use the short ACDIR tokens for cdartist and album, since they return the values in quotation marks...

REACT 2 Released

Reply #330
I had another idea, regarding a hotkey that opens up a dialogue as part of REACT, in which you can specify other information - now I come to think about it a simple key/value list (pretty much like the foobar properties dialogue) would be most flexible, so you can create new tokens of any given name, with any given value.  I had originally thought of a dialogue that extends the Artist/Album/Genre/Year submissions, providing Discnumber/TotalDiscs/DiscName, etc. text boxes - but a key/value submission would be most flexible.  Perhaps a few key fields could be included with a key/value list for additional/bespoke tokens.  Dunno, just another idea to throw in the pot.


and a very good idea at that.  Keep this one on the burner.  This forum has opened my eyes to the possibilities of EAC (I used to simply use it to make CDs back in the day, no freeDB, no LAME, certainly no REACT) but being the perfectionist I am it has opened my eyes to the limitations and this solution would be a big gap filler in my eyes.

 

REACT 2 Released

Reply #331
I'm already thinking things through a bit.



I should probably be concentrating on how the data will be maintained, how it will fit into REACT, etc., but I couldn't resist having a play with AutoIt's GUI script.

We'll see.  It may eventually get into a position where tycho might show some interest, but I'm sorely lacking time at the moment.
I'm on a horse.

REACT 2 Released

Reply #332
One of my CDs contains 3 audio tracks and 1 data track at the end. When I use REACT in image mode and tell REACT to create all cue sheets, the resulting *.[mg].cue only refers the range.wav instead of the multiple wav files. I.e. it looks like the *..cue.  This problem only occurs from time to time - sometimes everything works the way it should.
Does anyone know about this issue?

Edit: This also happens with CDs not containing data tracks.

REACT 2 Released

Reply #333
One of my CDs contains 3 audio tracks and 1 data track at the end. When I use REACT in image mode and tell REACT to create all cue sheets, the resulting *.[mg].cue only refers the range.wav instead of the multiple wav files. I.e. it looks like the *..cue.  This problem only occurs from time to time - sometimes everything works the way it should.
Does anyone know about this issue?

Edit: This also happens with CDs not containing data tracks.


Remind me, are you ripping tracks, or images (and splitting to tracks)?

I rip tracks.  If this problem affects me I have not noticed it




This is a prototype right?  I got all excited there for a nanosecond

REACT 2 Released

Reply #334
This is a prototype right?  I got all excited there for a nanosecond
I spent a little more time on it over the weekend.  I now have that GUI working as a standalone script, so that you can add, edit and delete items.  I also have it populating from an INI file.

I am intending to see it through, so that you can press a hotkey with EAC/REACT open and the dialogue will open, etc.  However, I don't know what I'll do with it once I've satisfied my curiosity.  I don't want to p*ss of tycho at all, and I'm not overly interested in creating some sort of confusing REACT fork.  Once I'm done maybe I'll post the code and see if tycho is interested.  The easiest way is probably to post a patch to the REACT source, so that anyone can apply the patch and create a new EXE themselves.  I need to check what license REACT is released under, and then try to understand what that means.

If it's as useful as I think it could be then I hope that tycho will approve.
I'm on a horse.

REACT 2 Released

Reply #335

One of my CDs contains 3 audio tracks and 1 data track at the end. When I use REACT in image mode and tell REACT to create all cue sheets, the resulting *.[mg].cue only refers the range.wav instead of the multiple wav files. I.e. it looks like the *..cue.  This problem only occurs from time to time - sometimes everything works the way it should.
Does anyone know about this issue?

Edit: This also happens with CDs not containing data tracks.


Remind me, are you ripping tracks, or images (and splitting to tracks)?

I rip tracks.  If this problem affects me I have not noticed it


This problem occured in both, image and track mode. It seems to me that it only happens directly after starting REACT and it may take a few tries till the cue sheets are built correctly. Once it worked, the problem never reoccured unless restarting REACT. But it's hard to describe, since it occurs only sporadically. 

REACT 2 Released

Reply #336
This problem occured in both, image and track mode. It seems to me that it only happens directly after starting REACT and it may take a few tries till the cue sheets are built correctly. Once it worked, the problem never reoccured unless restarting REACT. But it's hard to describe, since it occurs only sporadically. 


Probably not related, but I have had problems where the cuesheets cause problems.  I changed gap detection mode (from C to A) and now I get it less.  Also, if you abandon a rip it seems to be necessary to close EAC and then close the REACT icon in the taskbar before restarting REACT.  If you do not one problem I noticed was the ripping window would not be closed and therefore the log file would not be ready

I am intending to see it through, so that you can press a hotkey with EAC/REACT open and the dialogue will open, etc.  However, I don't know what I'll do with it once I've satisfied my curiosity.  I don't want to p*ss of tycho at all, and I'm not overly interested in creating some sort of confusing REACT fork.  Once I'm done maybe I'll post the code and see if tycho is interested.  The easiest way is probably to post a patch to the REACT source, so that anyone can apply the patch and create a new EXE themselves.  I need to check what license REACT is released under, and then try to understand what that means.

If it's as useful as I think it could be then I hope that tycho will approve.


Lets hope so.  I would certainly be interested in testing this for you!

REACT 2 Released

Reply #337
wow very cool tool baut a but over whelming.

I currently rip with audeio grabber
then mp3 gain
then clean tags and embed album art with mp3tag

could I get some help with image and track cfgs
I want to rip an album to mp3 tracks (lame -b 320)
run mp3 gain ( track)  89db (mp3gain /r /c)
embed album art
clean tags like this

delete leading and trailing spaces in tags
remove the and The on artists
change & to and
change : and _ to spaces

and write the mp3 files to
c:\music\%artist%\%artist% - %album% - %track% - %title%

REACT 2 Released

Reply #338

This problem occured in both, image and track mode. It seems to me that it only happens directly after starting REACT and it may take a few tries till the cue sheets are built correctly. Once it worked, the problem never reoccured unless restarting REACT. But it's hard to describe, since it occurs only sporadically. 

Probably not related, but I have had problems where the cuesheets cause problems.  I changed gap detection mode (from C to A) and now I get it less.  Also, if you abandon a rip it seems to be necessary to close EAC and then close the REACT icon in the taskbar before restarting REACT.  If you do not one problem I noticed was the ripping window would not be closed and therefore the log file would not be ready

Thanks for the hints! It is very well possible that my problems only occured after having abandoned a rip previously. I will have an eye on this.

REACT 2 Released

Reply #339
could I get some help with image and track cfgs
I want to rip an album to mp3 tracks (lame -b 320)
run mp3 gain ( track)  89db (mp3gain /r /c)
embed album art

clean tags like this

delete leading and trailing spaces in tags
remove the and The on artists
change & to and
change : and _ to spaces

and write the mp3 files to
c:\music\%artist%\%artist% - %album% - %track% - %title%


REACT's ini will let you do all the bold bits I believe.  The rest?  I make sure my EAC freeDB info is correct before ripping.  I leave 'The' on the start and then have foobar remove it in my album tree (this way I can change my mind later)  I am sure you can have react do this for you (using something like SED maybe) but I am not the man to write the script for you I am afraid

REACT 2 Released

Reply #340

could I get some help with image and track cfgs
I want to rip an album to mp3 tracks (lame -b 320)
run mp3 gain ( track)  89db (mp3gain /r /c)
embed album art

clean tags like this

delete leading and trailing spaces in tags
remove the and The on artists
change & to and
change : and _ to spaces

and write the mp3 files to
c:\music\%artist%\%artist% - %album% - %track% - %title%


REACT's ini will let you do all the bold bits I believe.  The rest?  I make sure my EAC freeDB info is correct before ripping.  I leave 'The' on the start and then have foobar remove it in my album tree (this way I can change my mind later)  I am sure you can have react do this for you (using something like SED maybe) but I am not the man to write the script for you I am afraid


thanks io got most if it working
I am sure I can get it to work with SED
then I treid to isntall the album art downlaoder.
it required dot net 3
it worked but now acdir is giving em unhandled exceptions  and needing to turn on the just in time debugger.
damn


uninstalled and reinstalled.
more of the same.
rips fine in track mode.  that doesn't use acdir right.
I can get proabaly get it to do everyting I want.

REACT 2 Released

Reply #341
Quote
thanks i got most if it working
I am sure I can get it to work with SED
then I treid to isntall the album art downlaoder.
it required dot net 3
it worked but now acdir is giving em unhandled exceptions  and needing to turn on the just in time debugger.
damn


uninstalled and reinstalled.
more of the same.
rips fine in track mode.  that doesn't use acdir right.
I can get proabaly get it to do everyting I want.

found that problem it was a typo on my acdir file nameing conventron string.
so i can reapply dot net 3  and used the newer verion of album art cover downloader


next question
when ripping images

the process is rip image, process bat file.
any way to make it not process the bat file.

I could then just rip a bunch of cds to images. create a bunch of batch files and then kick them off later  ( when I go to bed  un attended).

better yet I could easily chain the batch files together.

how to keep the batch files from executing.

I have a couple of ideas but would appeceiate an easier way
idea
make the batch file look for a special file or quit.  then the batch wont run at rip time and leave everyting in place. then create that special file (simple text file run.ok)  and re run the batch files.
idea off

second new question 
I use mp3 track gain  I put that in the image cfg.  it works.
but metamp3 uses mp3gain source code right.  do I just set applyreplygain =1 and albumn gain = 0 
does it change the file not just tags?

I use itunes, and ipods  but all mp3 no aac
my alpine ipod controller ( the new ida) plays digitally from ipods or other mass storqage devices I dont htink it supports soundheck internally.

REACT 2 Released

Reply #342
Quote
second new question 
I use mp3 track gain  I put that in the image cfg.  it works.
but metamp3 uses mp3gain source code right.  do I just set applyreplygain =1 and albumn gain = 0 
does it change the file not just tags?

I use itunes, and ipods  but all mp3 no aac
my alpine ipod controller ( the new ida) plays digitally from ipods or other mass storqage devices I dont htink it supports soundheck internally.


just tried it.
changing the ini file to replay gain 1 album gain 0 does not give the same result as mp3 gain defaults.

the metamp3 is louder but thatsall i could tell. I dont have any thing that reads the ape tags
I could un mp3gain all my files ( it reversable)
and re apply gain with metamp3.  on all my files.  (50gb)
then simply use the metamp3 stuff above.

I wna them track normalized because I mosly listen to my music on complex play list  shuffles.


I should just go to bed
I found the metamp3 thread
its 3db louder
I canuse metamp3 to undo, redo and apply mp3gain(ed) files.
it uses standasd tags
tycho is god

REACT 2 Released

Reply #343
any way to make it not process the bat file.

I could then just rip a bunch of cds to images. create a bunch of batch files and then kick them off later  ( when I go to bed  un attended).

better yet I could easily chain the batch files together.

how to keep the batch files from executing.


Hit CTRL-Q (or Tools -> Compression Queue Control Center) and tick the box 'Make all compression tasks sleep'.  When you're done for the night, go back, untick the box and click OK.  Your compression tasks will now start all queued up.  Wake up happy

REACT 2 Released

Reply #344


any way to make it not process the bat file.

I could then just rip a bunch of cds to images. create a bunch of batch files and then kick them off later  ( when I go to bed  un attended).

better yet I could easily chain the batch files together.

how to keep the batch files from executing.


Hit CTRL-Q (or Tools -> Compression Queue Control Center) and tick the box 'Make all compression tasks sleep'.  When you're done for the night, go back, untick the box and click OK.  Your compression tasks will now start all queued up.  Wake up happy

thx

REACT 2 Released

Reply #345
In track mode how can I get Various Artists to create the artist directory based on the $artist$ tag, as the following doesn't work.

TrackName_VA=$artist$\$track$ - $title$

This did not create an Artist directory, or create the finished track.

REACT 2 Released

Reply #346
new question
in image mode
I would like to clean tags ( see my prevous post)
I think I want to use SED on the cue file befor calling acdir.

any suggestions /  examples

REACT 2 Released

Reply #347
Having a small problem with embedding album art.  Everything else seem to do Ok, I do a F10 Album Art downloader come up and I save it(might not be saving to correct location).  I edited the REACT.ini file only. I don't know enough about scripting to edit the REACT-image.cfg file.  I running windows xp2, update the to flac v1.14 and AlbumArtDownloaderXUI.  I can embed albumart using MP3Tag.

Good news, I got it working.  I needed 'CreateAllCuesheets=0' set to 1 instead of 0. And name of file saved as album name and saved to root directory of file where the music was to be saved.

REACT 2 Released

Reply #348
In track mode how can I get Various Artists to create the artist directory based on the $artist$ tag, as the following doesn't work.

TrackName_VA=$artist$\$track$ - $title$

This did not create an Artist directory, or create the finished track.


Hang on, artist will vary for a various artists album!  I use VariousArtists/Album/number -- track -- artist.flac

REACT 2 Released

Reply #349
This is a prototype right?  I got all excited there for a nanosecond
I thought it was about time that I made it known publicly that I now have this working.

With my amended EXE pressing Alt+F5 will bring up a non-modal dialogue very similar to that above (it has since been turned into a toolbox dialogue so that it does not show up in the task bar).

The dialogue allows you to set both disc- and track-level meta data.  Setting "discnumber" to 1 as above, will allow you to use the tokens @discnumer@ (1) and $discnumber$ (01) in your CFG (for $-style tokens integers are zero-padded and strings are converted to their filename-friendly equivalent).

For users ripping to tracks the format "<token>[<track>]" may be used. E.g.: "composer[1]" will set the @composer@ token value for track one, "composer[2]" will set the @composer@ token value for track two, etc.

As an example of how the default "discnumber" and "totaldiscs" tokens may be used:

Code: [Select]
IF @totaldiscs@ GTR 1 SET TrackDir_Flac=%TrackDir_Flac% (Disc @discnumber@)

or

Code: [Select]
IF @totaldiscs@ GTR 1 SET D_Wavpack=-w "discnumber=@discnumber@" -w "total discs=@totaldiscs@"
...
@tools@\wavpack.exe @Opt_Wavpack@ %RG_Wavpack% %D_Wavpack% -w "%ArtistField%=@cdartist@" ...

I have recently made some steps towards adding these values to the cuesheet(s) also.

@Tycho : Are you happy for me to release an EXE with source, or would you like me to send it to you for your perusal first?  I can find no documentation regarding REACT's license, and I have no desire to annoy you or hinder your work with REACT.  I will no release this publicly until I have a response from you.
I'm on a horse.