LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-01-2009, 02:12 PM   #1
nnjond
Member
 
Registered: Feb 2007
Distribution: Ubuntu 10.04
Posts: 281

Rep: Reputation: 31
GNU Solfege modification


Hi,
I have downloaded a great Ear Trainer; GNU Solfege. Apparently I,m free to modify it and i would like to slow down the scales i'm asked to identify in one of the exercises. Scales Config allows for changes in transposition only. I assumed i have to rewrite something.

Can anyone advise me on how i might do this?

Thanks
__________________
 
Old 08-01-2009, 02:56 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
That depends a lot on what language the stuff is written in (I'm guessing a C variant, but please give us the programming language) as well as how large/complicated the package is (meaning how difficult might it be to edit what you want to edit).

With any luck, it's a C program, and it has a header file (a file ending with .h) in which the speed and other variables are defined, and which, if you edit it and recompile the application, your new speed will be used.

NOTE: Doing this might cause ALL of the exercises to use the new speed though. If this is the case, and is undesired, then a more complicated edit would be needed.

Anyhow, please give us a bit more info on it, and hopefulle someone familiar with the package and/or language can help.

Sasha
 
Old 08-01-2009, 03:25 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Moved: This thread is more suitable in <Software> and has been moved accordingly to help your thread/question get the exposure it deserves.

Did you actually download the source code? Or perhaps it is written in something like Python?----try opening the executable file with a text editor.
 
Old 08-01-2009, 03:30 PM   #4
nnjond
Member
 
Registered: Feb 2007
Distribution: Ubuntu 10.04
Posts: 281

Original Poster
Rep: Reputation: 31
Thanks for your interest Sascha.

Im sorry I'm not certain which directory to look in to find the hidden files. But I'm hopping the prob is as simple as could be imagined.
 
Old 08-01-2009, 03:35 PM   #5
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
Sorry-- my own post duplicated.

Last edited by GrapefruiTgirl; 08-01-2009 at 03:36 PM.
 
Old 08-01-2009, 03:35 PM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
Could you provide a link to where you downloaded this thing from?

Thanks
Sasha
 
Old 08-01-2009, 04:01 PM   #7
nnjond
Member
 
Registered: Feb 2007
Distribution: Ubuntu 10.04
Posts: 281

Original Poster
Rep: Reputation: 31
Here's the site of GNU Solfege

http://www.solfege.org/
 
Old 08-01-2009, 04:28 PM   #8
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
duplicate post.
 
Old 08-01-2009, 04:28 PM   #9
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
OK, I'm no programming guru, however if you have not gotten any further replies in a little while, I will look at the source code.

HOWEVER:

1) I'm on dialup, so it will take a little while for me to download.

and

2) The source archive is 4MB. That's relatively large; that's potentially a lot of code for someone to look at, considering WHY I want to look at it. So there are definitely no guarantees that I will be able to help.

Meanwhile, have you read the Solfege Wiki site? Maybe there's something in there about this.

I'll check back later.

Sasha

Last edited by GrapefruiTgirl; 08-01-2009 at 04:30 PM.
 
Old 08-02-2009, 09:54 AM   #10
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
OK, pixellany is correct: it's python.

If anyone is to be able to help further, please tell us the name of,or describe for us as best you can, which exercise or lesson it is that you wish to edit, so that we can have some idea where to start poking around; there are a lot of files in there!

Sasha
 
Old 08-02-2009, 09:54 AM   #11
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
dupe. Grrr..

Last edited by GrapefruiTgirl; 08-02-2009 at 09:56 AM. Reason: dupe again..
 
Old 08-02-2009, 12:46 PM   #12
nnjond
Member
 
Registered: Feb 2007
Distribution: Ubuntu 10.04
Posts: 281

Original Poster
Rep: Reputation: 31
Hey Sasha ! Thanks alot. I did n't think I would be asking for so much help.

The Exersise in particular is reached by the menu, Scales. on opening any particular example, there are 3 commands: new, repeat and repeat slowly. I would like to alter the tempi of these by say, 50%.


nick
 
Old 08-02-2009, 01:54 PM   #13
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
Help: Editing GNU Solfege (Python) to cut tempo by 50%

OK...

First, I must say, I am somewhat musically challenged as far as reading & playing music. I just listen to the stuff

Secondly, I'm also python-challenged.

Third, ... I forget what was third..

Anyhow, here's what I found, which:

A) I recommend someone who codes in python verify what I have found. I may not be in the exact right spot.
B) You will need to re/compile the software for the change(s) to take place.
C) read the docs too, particularly HERE where it explains how tempo is defined (and to me, implies that it can be set somehow by the user, though it may operate globally on EVERYTHING..) as follows:
Quote:
Tempo

The tempo of music is entered as bpm/beatlen. The following example will set the tempo to 120 beats per minute, each beat being a quarter note.

tempo = 120/4
D) My advice here comes with no warranty so see (A) above.

What I propose:

1) In the extracted sourcecode archive, locate and enter the folder called /src and locate the file called lessonfile.py and open it in a text editor.
2) Locate line 161. This is where the default (???) tempo is set at 60 bpm, duration is set to 4 (1/4 note if I understand right) so if you wanted to change the initial setting, I would cut the 60 in half for a 50% reduction.
3) Go to line 371 of the file. Here is the 'play_slowly' section, where 'play_slowly' takes the tempo and halves it by dividing by 2. If you wanted this to be half again as slow, I would change that to divide by 4 instead.

Careful: halving BOTH the default by 50% AND the 'slowly' tempo by another 50% will give you a REALLY slow tempo when 'play_slowly' is executed.

Having made the above adjustment(s), you would need now to build the project, to produce the executable binary that is the finished application. Now, I repeat, I have no idea about python, so while the documentation tells me to to the usual './configure' then 'make' then 'make install' I don't actually see a configure script in there. The package might need to be autoconf'd first, to generate a configure script..
EDIT: Yes, run the command 'autoconf' before running ./configure

At this moment, I am going to request that this thread be moved to "Programming" and that the title be edited to include the word "Python" so that some python programmers might be able to give further guidance, and/or tell me I'm totally out in left field

Also, if I can, I will try to compile this myself, if I can figure out how. It has a lot of GNOME dependencies, and I don't run GNOME, so I may not be able to compile it anyways.

Best of luck; I hope this helps you. I will now request a thread move & title adjustment.

Sasha

Last edited by GrapefruiTgirl; 08-02-2009 at 01:59 PM. Reason: added autoconf edit
 
Old 08-02-2009, 11:35 PM   #14
nnjond
Member
 
Registered: Feb 2007
Distribution: Ubuntu 10.04
Posts: 281

Original Poster
Rep: Reputation: 31
Thanks a lot.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pygtk error when installing solfege jrdioko Linux - Software 2 08-03-2006 12:06 AM
LXer: Does GNU needs a GNU logo? LXer Syndicated Linux News 0 05-05-2006 11:12 PM
Solfege, timidity & DGuitar, MIDI issue. Jorek Linux - Software 2 01-13-2006 05:07 PM
GNU Pascal calls GNU C chris.hicks Programming 0 11-13-2003 11:18 AM
GNU C calls GNU Pascal? chris.hicks Programming 1 11-13-2003 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration