don't want wave/color/flowfield to change when song changes
Moderators: BTT, andy55, b.dwall, juxtiphi
don't want wave/color/flowfield to change when song changes
Whenever the song changes (i use it with iTunes), the color/wave/flowfield changes too. Maybe not all three everytime, but at least 2 out of 3 everytime. Is there anyway for it NOT to change, and only change when the next change was due?
Thanks!
Thanks!
I was trying it by hitting the "F" key to stop all slideshows and it doesn't change at all between songs. Then I re-read your post and realized what you are talking about. It does seem to change right when a new song starts. Maybe it's a "feature".
Well, when you hear a song ending hit the "F" key and when the next one starts hit the "G" key. Or just run scripts all the time, like I do. Other than that I don't know of anything.
Well, when you hear a song ending hit the "F" key and when the next one starts hit the "G" key. Or just run scripts all the time, like I do. Other than that I don't know of anything.
Once again, I spoke too soon. Look in Boot.txt for this block of code:
put a /* (slash asterick) on the line before it and a */ (asterick slash) on the line after it and that should take care of it. Save the file and restart G-Force.// This binds a string to be executed when a new song starts. By default, a new WaveShape and ColorMap
// are switched out (if their respective slideshows are on) and either the pretty track info overlay
// is started or a GF particle is started, depending if there's cover art available. See above comments.
BindEvent( SS_TRACK_BEGIN_EVENT, " \
if ( GetSlideShow( CONFIG_WAVESHAPE ) ) { \
NextWaveShape( 1, _WAVESHAPE_QUICK_MORPH, false ); \
} \
if ( GetSlideShow( CONFIG_COLORMAP ) ) { \
NextColorMap ( 1, _COLORMAP_QUICK_MORPH, false ); \
} \
if ( GetPref( PREF_TRACK_TEXT_AUTO ) ) { \
"_START_TRACK_TEXT" \
}"
);
Great, thanks, that's exactly what I was looking for. I knew there was some way. But if don't want the next waveshape or colormap, but I still want the track info to show up at song start, where should I add the /* and the */ ?chkman wrote:Once again, I spoke too soon. Look in Boot.txt for this block of code:put a /* (slash asterick) on the line before it and a */ (asterick slash) on the line after it and that should take care of it. Save the file and restart G-Force.// This binds a string to be executed when a new song starts. By default, a new WaveShape and ColorMap
// are switched out (if their respective slideshows are on) and either the pretty track info overlay
// is started or a GF particle is started, depending if there's cover art available. See above comments.
BindEvent( SS_TRACK_BEGIN_EVENT, " \
if ( GetSlideShow( CONFIG_WAVESHAPE ) ) { \
NextWaveShape( 1, _WAVESHAPE_QUICK_MORPH, false ); \
} \
if ( GetSlideShow( CONFIG_COLORMAP ) ) { \
NextColorMap ( 1, _COLORMAP_QUICK_MORPH, false ); \
} \
if ( GetPref( PREF_TRACK_TEXT_AUTO ) ) { \
"_START_TRACK_TEXT" \
}"
);
I'm not sure what the backslashes do at the end of each line. But the middle two IFs are what does the wave and color change. I would suggest putting the /* on the line after the BindEvent and put the */ on the line before the "if ( GetPref( PREF_TRACK_TEXT_AUTO)) {\". If G-Force doesn't like it you might have to delete the two IFs, the wave and the colormap. But this is the part to comment out or remove:
if ( GetSlideShow( CONFIG_WAVESHAPE ) ) { \
NextWaveShape( 1, _WAVESHAPE_QUICK_MORPH, false ); \
} \
if ( GetSlideShow( CONFIG_COLORMAP ) ) { \
NextColorMap ( 1, _COLORMAP_QUICK_MORPH, false ); \
} \
works, but now...
Great, that worked, but now, it freezes for half a second when song changes... like its skipping. Anyway to get rid of the skip?
neither work
I triend commenting them out, and also tried removing them, I still get a "skip" when song changes...
I have a Pentium 4 3.4 GHz 1GB ram, and an all-in-wonder x600 pro... I don't think it's a peformance issue...
I have a Pentium 4 3.4 GHz 1GB ram, and an all-in-wonder x600 pro... I don't think it's a peformance issue...
Re: works, but now...
That's your media player -- that "freeze" is your media player loading the next audio file from disk -- see if there's a setting to preload song files (or "asynchronous" song loading). You most likely just didn't notice it before because of the waveshape and colormap distraction.Hypersky wrote:Great, that worked, but now, it freezes for half a second when song changes... like its skipping. Anyway to get rid of the skip?
andy
In a C preprocessor, a backslash denotes that the following linebreak should be ignored. This feature exists to enhance readabilty of stuff that would normally have to be one huge (unreadable) line. For example, a C preprocesssor will process:chkman wrote:I'm not sure what the backslashes do at the end of each line.
x\
=y\
;
into:
x=y;
This preprocessing even applies to strings:
stdout( \
"hello \
worl\
d");
is processed into:
stdout( "hello world");
So, to your original question, the backslashes in that part you pointed out technically aren't required (in this case) since if they weren't there, the G-Force interpreter would ignore all the whitespace and LFs that got added. However, for example, if you changed:
stdout( "123\
456");
to
stdout( "123
456");
then you'll get 123456 printed for the first one and 123(LF)456 (or whatever whitespace is after 123 in your text file) for the second. Make sense?
Andy