[Clam-devel] Re: OSC in CLAM

Han, Yushen yushen.han at gmail.com
Thu Aug 7 12:12:11 PDT 2008


Hi, David

Thanks for your hint.

I replaced AudioFileIn with MonoAudioFileReader and the
LoopMaker+SilenceDetector is working now.

Here is the patch - should be applied under
/plugins/temporal_oboeSynthesizer/LoopMaker

Best regards,
Han, Yushen

On Wed, Aug 6, 2008 at 10:11 PM, David García Garzón
<dgarcia at iua.upf.edu> wrote:
> On Dimecres 06 Agost 2008, Han, Yushen wrote:
>> Hi, Pau
>>
>> (1) For the LoopMaker, I just checked the 4 points given by David but
>> the problem in the plugin persisted.
>> (Let me check it again.)
>
> Taking a look to the error i just realized that you are using AudioFileIn. It
> was deprecated since 1.1 and has been removed recently. You should use
> MonoAudioFileReader or any other of the family instead.
>
> Take a look at the migration guide:
> http://iua-share.upf.edu/wikis/clam/index.php/Version_Migration_Guide#AudioFile
>
> See also above (1.1 to 1.2 migration) on how to get the Header and Descriptors
> information if you need to.
>
> Your code compiles because when you remove a header, from the code, the header
> remains copied both at CLAM/scons/libs/*/include/CLAM and at the installation
> place. It doesn't link because the symbols it defined (the cxx) are no longer
> in the library. So also remove the headers at least those deprecated ones.
>
>
>
>> (2) For the main plugin, you are right: there should not be
>> SimpleOboeSynthesizer.cxx anymore.
>>
>> I was trying to remove those files (listed below)  by "svn rm --force xxx"
>> It looked okay as below but after that the files removed were still
>> there by "svn ls xxx" !!
>>
>> I sent you the updated list of files with my comments.
>> Do you know how to remove those files from svn?
>>
>> Best regards,
>> Han, Yushen
>>
>> 149-159-132-38:clam yushen$ svn rm --force
>> CLAM/plugins/temporal_oboeSynthesizer/array.hxx
>> D         CLAM/plugins/temporal_oboeSynthesizer/array.hxx
>> 149-159-132-38:clam yushen$ svn rm --force
>> CLAM/plugins/temporal_oboeSynthesizer/SimpleOboeSynthesizer.cxx
>> D         CLAM/plugins/temporal_oboeSynthesizer/SimpleOboeSynthesizer.cxx
>> 149-159-132-38:clam yushen$ svn rm --force
>> CLAM/plugins/temporal_oboeSynthesizer/SimpleOboeSynthesizer.xcodeproj/
>> D
>> CLAM/plugins/temporal_oboeSynthesizer/SimpleOboeSynthesizer.xcodeproj/yushe
>>n.pbxuser D
>> CLAM/plugins/temporal_oboeSynthesizer/SimpleOboeSynthesizer.xcodeproj/yushe
>>n.mode1v3 D
>> CLAM/plugins/temporal_oboeSynthesizer/SimpleOboeSynthesizer.xcodeproj/proje
>>ct.pbxproj D
>> CLAM/plugins/temporal_oboeSynthesizer/SimpleOboeSynthesizer.xcodeproj
>>
>>
>> 149-159-132-38:clam yushen$ svn ls CLAM/plugins/temporal_oboeSynthesizer/
>> ContinuousExcitationConstants.hxx
>> ContinuousExcitationControlSource.hxx
>> ContinuousExcitationOSCSource.cxx
>> ContinuousExcitationOSCSource.hxx
>> ControlStreamSegmentator.cxx
>> ControlStreamSegmentator.hxx
>> DirectoryBasedMetadataReader.cxx
>> DirectoryBasedMetadataReader.hxx
>> MetadataReader.hxx
>> SConstruct
>> SDIFDatabase.cxx
>> SDIFDatabase.hxx
>> SDIFDatabaseProcessing.cxx
>> SDIFDatabaseProcessing.hxx
>> SDIFFileReaderWithBuffer.cxx
>> SDIFFileReaderWithBuffer.hxx
>> SDIFFileReaderWithLoop.cxx
>> SDIFFileReaderWithLoop.hxx
>> SampleMetadata.hxx
>> SimpleOboeSynthesizer.cxx            [should be removed!]
>> SimpleOboeSynthesizer.xcodeproj/  [should be removed!]
>> SimpleTransformer.cxx
>> SimpleTransformer.hxx
>> TestScore.cxx
>> TestScore.hxx
>> array.hxx                                        [should be removed!]
>> sample_metadata_template.xml
>> synthesis.xml
>>
>> On Wed, Aug 6, 2008 at 5:13 PM, Pau Arumí <parumi at iua.upf.edu> wrote:
>> > On dc, 2008-08-06 at 13:43 -0400, Han, Yushen wrote:
>> >> Hi, Pau
>> >>
>> >>
>> >> and a README.txt which is the instruction for those two tools.
>> >>
>> >> However, this is a new problem with my LoopMaker I compiled the lasted
>> >> clam:
>> >
>> > It should be what David have pointed out -- hopefuly.
>> >
>> >> Here is the patch with all the problems that you pointed out
>> >> corrected.
>> >>
>> >> In this patch, I added 2 subdirs under svn:
>> >> /plugins/temporal_oboeSynthesizer/LoopMaker
>> >> /plugins/temporal_oboeSynthesizer/SDIF2Wav
>> >
>> > Yes, looks much better now.
>> > But it fails to compile (the plugin, not a subdir) here
>> >
>> > Before diving myself into the problem, do you have any hint?
>> > Maybe you forgot to remove some file (svn rm file) to the patch?
>> >
>> > P
>> >
>> > The error trace
>> >
>> > g++ -o RealtimeSMSSynthesizer RealtimeSMSSynthesizer.o
>> > ControlStreamSegmentator.o SDIFDatabase.o TestScore.o
>> > SimpleOboeSynthesizer.o SDIFDatabaseProcessing.o
>> > SDIFFileReaderWithBuffer.o SimpleTransformer.o
>> > ContinuousExcitationOSCSource.o SDIFFileReaderWithLoop.o
>> > DirectoryBasedMetadataReader.o -L/home/parumi/local/lib -lclam_core
>> > -lclam_audioio -lclam_processing SimpleOboeSynthesizer.o: In function
>> > `CLAM::SynthesizeToSpeakers(CLAM::SDIFDatabase&, CLAM::SMSSynthesis&,
>> > CLAM::ContinuousExcitationControlSource*, CLAM::MonoAudioFileWriter*)':
>> > /home/parumi/local/include/CLAM/SpectralSynthesisConfig.hxx:42: multiple
>> > definition of `CLAM::SynthesizeToSpeakers(CLAM::SDIFDatabase&,
>> > CLAM::SMSSynthesis&, CLAM::ContinuousExcitationControlSource*,
>> > CLAM::MonoAudioFileWriter*)'
>> > RealtimeSMSSynthesizer.o:/home/parumi/clam/CLAM/plugins/temporal_oboeSynt
>> >hesizer/RealtimeSMSSynthesizer.cxx:52: first defined here
>> > SimpleOboeSynthesizer.o: In function `main':
>> > /home/parumi/clam/CLAM/plugins/temporal_oboeSynthesizer/SimpleOboeSynthes
>> >izer.cxx:184: multiple definition of `main'
>> > RealtimeSMSSynthesizer.o:/home/parumi/clam/CLAM/plugins/temporal_oboeSynt
>> >hesizer/RealtimeSMSSynthesizer.cxx:280: first defined here collect2: ld
>> > returned 1 exit status
>>
>> _______________________________________________
>> Clam-devel mailing list
>> Clam-devel at llistes.projectes.lafarga.org
>> https://llistes.projectes.lafarga.org/cgi-bin/mailman/listinfo/clam-devel
>
>
>
> --
> David García Garzón
> (Work) dgarcia at iua dot upf anotherdot es
> http://www.iua.upf.edu/~dgarcia
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LoopMakerWithMonoAudioFileReader.patch
Type: application/octet-stream
Size: 59317 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20080807/45a342b7/attachment-0004.obj>


More information about the clam-devel mailing list