Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Senior Member Apesbrain's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    336

    Tinnitus Notched Music Therapy

    See: http://www.google.com/search?q=tinni...ddress&ie=&oe=

    I tried the following modification in custom-convert.conf:
    Code:
    flc flc * *
    	# runs ALL flc through SoX to notch out one designated octave for tinnitus treatment
    	# in this example the octave is centered on 5.8k
    
    	# FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
    	[flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t flac -C0 sinc 8.7k-4.35k -
    It gives me an error when I try to play a flac file. Any suggestions on how to make this work? Thanks.

  2. #2
    Senior Member
    Join Date
    Apr 2005
    Location
    Colorado
    Posts
    10,072
    Did you ever figure this out?

  3. #3
    Senior Member Apesbrain's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    336
    No, I did not. I don't yet have enought expertise in SoX commandline to figure it out, but I may have some time next week to try again.

    I'm not currently home with my Squeezebox, but this would be the next thing I'd try:

    Code:
    flc flc * *
    	# runs ALL flc through SoX to notch out one designated octave for tinnitus treatment
    	# in this example the octave is centered on 5.8k
    
    	# FT:{START=--skip=%t}U:{END=--until=%v}
    	[flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t flac -C 0 sinc 8.7k-4.35k -
    Small changes but may work based on other custom-convert.conf examples I've seen since. If you try it, let me know what happens. Thanks.
    Last edited by Apesbrain; 2012-03-23 at 12:26.

  4. #4
    Senior Member
    Join Date
    Jul 2005
    Location
    Vancouver, Canada
    Posts
    125
    This sounds very interesting.I read some of the material on the link you have posted and will dig deeper. As a tinnitus sufferer this sounds encouraging. I use a Tact room correction system and I'm wondering if I could build a target curve that would achieve the notch they refer to.

    I'll post back after some more reading and research.

  5. #5
    Senior Member gharris999's Avatar
    Join Date
    Apr 2005
    Location
    Santa Fe, NM
    Posts
    3,299
    I'm curious. How are folks determining the frequency of their tinnitus?

    I'm not sure Apesbrain's 2nd custom-convert.conf is having the desired effect. After I installed ia32-libs, I did get LMS' sox to work. But these are the actual running processes for the transcoding:

    Code:
     4955 ?        S      0:00 /bin/bash /usr/sbin/lms_safe /usr/share/lms/server/slimserver.pl --prefsdir /var/lib/lms/prefs --logdir /var/log/lms/ --cachedir /var/lib/lms/cache --charset=utf8
     4957 ?        S      0:10 /usr/bin/perl /usr/share/lms/server/slimserver.pl --prefsdir /var/lib/lms/prefs --logdir /var/log/lms/ --cachedir /var/lib/lms/cache --charset=utf8 --norestart
     4968 ?        S      0:00 /usr/share/lms/server/Bin/i386-linux/flac -dcs --until=1:39.93 -- /mnt/Media/Music/b_Renaissance/Brumel, A/Missa Et ecce terrae motus a 12 voci & Sequentia Dies irae - Huelgas Ensemble, Paul Van Nevel.flac
     4969 ?        S      0:01 /usr/share/lms/server/Bin/i386-linux/sox -q -t wav - -t flac -C 0 -
    I don't see the 'sinc 8.7k-4.35k' in there anywhere.

  6. #6
    Senior Member
    Join Date
    Apr 2005
    Location
    Colorado
    Posts
    10,072
    This works. I couldn't get it using flac to decode. This means that START/END aren't implemented, so you can't play multi-track FLAC files with CUE sheets. Also, I'm not certain that RESAMPLE works, as I didn't test it with anything that required it.

    Code:
    flc flc * *
    	# FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
    	[sox] -q -t flac $FILE$ -t flac -C 0 $RESAMPLE$ - sinc 8.7k-4.35k

  7. #7
    Senior Member Soulkeeper's Avatar
    Join Date
    Dec 2009
    Location
    Norway
    Posts
    1,220
    A little bit of googling gave me this.

  8. #8
    Senior Member Apesbrain's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    336
    Thanks, everyone, for the replies. I tried both suggested conversion commands below and my FLAC files played. It's not clear to me upon listening, however, that the desired outcome of attenuating a target octave is actually happening.

    Code:
    flc flc * *
    	# runs ALL flc through SoX to notch out one designated octave for tinnitus treatment
    	# in this example the octave is centered on 5.8k using sinc function
    
    	# FT:{START=--skip=%t}U:{END=--until=%v}
    	[flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t flac -C 0 sinc 8.7k-4.35k -
    Code:
    flc flc * *
    	# runs ALL flc through SoX to notch out one designated octave for tinnitus treatment
    	# in this example the octave is centered on 5.8k using sinc function
    
    	# FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
    	[sox] -q -t flac $FILE$ -t flac -C 0 $RESAMPLE$ - sinc 8.7k-4.35k
    I recorded some output into Audacity and ran it through a spectrum analysis but it was not obvious that frequencies were being notched out. I even tried a wider "sinc" range and got the same results.

    My custom-convert.conf file is in the same folder as my convert.conf file. Please let me know if that is not the correct location. I've been restarting LMS after any change in the file.

    Can someone confirm this is working?

  9. #9
    Senior Member
    Join Date
    Apr 2005
    Location
    Colorado
    Posts
    10,072
    Quote Originally Posted by Apesbrain View Post
    Thanks, everyone, for the replies. I tried both suggested conversion commands below and my FLAC files played. It's not clear to me upon listening, however, that the desired outcome of attenuating a target octave is actually happening.

    The first thing I'd do is place that comment above the rule. Since the commmented second line is part of the rule, it would be safer.

    Code:
    # Run all flac through SoX to notch out one designated octave for tinnitus
    # treatment. In this example the octave is centered on 5.8kHz.
    flc flc * *
    	# FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
    	[sox] -q -t flac $FILE$ -t flac -C 0 $RESAMPLE$ - sinc 8.7k-4.35k
    It may be a little difficult to hear using 8.7k-4.35k. To make it very obvious, try something like 9.7k-1.35k.

  10. #10
    Senior Member Apesbrain's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    336
    Quote Originally Posted by JJZolx View Post
    The first thing I'd do is place that comment above the rule. Since the commmented second line is part of the rule, it would be safer.

    Code:
    # Run all flac through SoX to notch out one designated octave for tinnitus
    # treatment. In this example the octave is centered on 5.8kHz.
    flc flc * *
    	# FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
    	[sox] -q -t flac $FILE$ -t flac -C 0 $RESAMPLE$ - sinc 8.7k-4.35k
    It may be a little difficult to hear using 8.7k-4.35k. To make it very obvious, try something like 9.7k-1.35k.
    Oh, yeah! That works! Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •