Whistle Calculator Version 2

The Ultimate On-Line Whistle Community. If you find one more ultimater, let us know.
User avatar
DrPhill
Posts: 1610
Joined: Wed Nov 19, 2008 11:58 am
antispam: No
Please enter the next number in sequence: 10
Location: None

Whistle Calculator Version 2

Post by DrPhill »

Whistle Calculator Version 2 is available as an online version. I have some tidying up to do on the source code, so I wont make a download available yet.

Some new features:
  • * New method of selecting whistle key - choose high / low / bass and the note name. All the chromatic notes of three octaves are available as base notes for the whistle.
    * New way of specifying Scale Patterns - allows for temperaments other than 12TET, allows for thumbholes, even allows for whistles where there are notes below the 'base note'.
    * Thumb Holes: You can specify a thumb hole for the top hand to get that elusive strong Cnat on a D whistle.
    * New calculation algorithms, with parameters to fine tune them.
    * User-defined drill sets: specify the drills you have, and only they will be available in the hole size selector.
    * The Underlying 12 tone equal temperament scale can be set to any reference frequency.
    * Multiple whistles loaded at the same time - flick between them.
    * Whistles have user-defined names and fully editable comments.
    * New file formats
I probably wont get to do much work on this over the festive season, so please be patient.....

oh, and a Merry Christmas to one and all.......
Phill

One does not equal two. Not even for very large values of one.
Kypfer
Posts: 500
Joined: Fri Oct 29, 2010 4:27 pm
antispam: No
Please enter the next number in sequence: 12

Re: Whistle Calculator Version 2

Post by Kypfer »

SORRY ... Sorted it ... I needed to increase the finger-hole sizes :oops:

I tried this briefly with view to using it for a bamboo pipe ... relatively large bore 19-22mm for a D (soprano), even larger for an alto, with approx 3mm wall thickness, but couldn't get it to work (many of the holes "fall off" the left-hand end) .... edited as irrelevant
"I'm playing all the right notes—but not necessarily in the right order."
User avatar
DrPhill
Posts: 1610
Joined: Wed Nov 19, 2008 11:58 am
antispam: No
Please enter the next number in sequence: 10
Location: None

Re: Whistle Calculator Version 2

Post by DrPhill »

Version 2 is now available at the Sourceforge site.

You can view and use the applet online. (If that link does not work, either clear your cache, or go direct to the version page. Going direct to the version page may mean that you miss a future revision).

New since v1.02:
  • *New method of selecting whistle key - choose high / low / bass and the note name. All the chromatic notes of three octaves are available as base notes for the whistle.
    *New way of specifying Scale Patterns - allows for temperaments other than 12TET, allows for thumbholes, even allows for whistles where there are notes below the 'base note'.
    *Thumb Holes: You can specify a thumb hole for the top hand to get that elusive strong Cnat on a D whistle.
    *New calculation algorithms, with parameters to fine tune them.
    *User-defined drill sets: specify the drills you have, and only they will be available in the hole size selector.
    *The Underlying 12 tone equal temperament scale can be set to any reference frequency.
    *Multiple whistles loaded at the same time - flick between them.
    *Whistles have user-defined names and fully editable comments.
    *Scale Patterns have user-defined comments and names.
    *New file formats
    *Offset controls can be hidden (that is for you, Hans...).
    *Configuration saved at close, and reloaded at start-up.

Please tell me of any defects you find, or enhancements that you want......
Phill

One does not equal two. Not even for very large values of one.
User avatar
DrPhill
Posts: 1610
Joined: Wed Nov 19, 2008 11:58 am
antispam: No
Please enter the next number in sequence: 10
Location: None

Re: Whistle Calculator Version 2

Post by DrPhill »

I have put another file on the download site (dataFiles_2.00.zip). This includes two drill set files with imperial drill sizes either in 1/32 inch or 1/64 inch, for those that still prefer imperial measurements. I am working on a version that uses the speed of sound in furlongs per fortnight (just kidding :lol: )
Phill

One does not equal two. Not even for very large values of one.
User avatar
walrii
Posts: 1174
Joined: Wed Jan 05, 2005 5:21 pm
antispam: No
Location: Burkburnett, TX

Re: Whistle Calculator Version 2

Post by walrii »

I just downloaded the program. Neat program but I thought you included an option to use inches instead of mm for the units. Am I missing a menu somewhere?
The Walrus

What would a wild walrus whistle if a walrus could whistle wild?

The second mouse may get the cheese but the presentation leaves a lot to be desired.
User avatar
DrPhill
Posts: 1610
Joined: Wed Nov 19, 2008 11:58 am
antispam: No
Please enter the next number in sequence: 10
Location: None

Re: Whistle Calculator Version 2

Post by DrPhill »

You remember correctly Walrii - but I have removed the ability to use imperial (1/32 inch) units. I wish eventually to give the user more control over the calculation algorithm and its fine tuning, and every way I have tried is complicated by working in both metric and imperial. I am also trying to reduce the number of controls on the GUI as I want to display more than one whistle picture at a time........

To help those with imperial drill bits I have provided the ability to specify hole sizes in a separate file so that you can use imperial drills (or even a mix of imperial and metric!). You can download the data files zip from the site, and use one of the drillSets in it. One is metric values of drill sizes in 1/32 inch steps, and the other is metric values of drill sizes in 1/64 inch steps. Or you can specify your own drill set (Menu: - edit - drill set)

That leaves four fields that need converting manually to metric:
  • * pipe internal diameter
    * pipe wall thickness
    * embouchure window width
    * embouchure window length
The first two (pipe definitions) will not change very often for a given whistle. The second two represent the embouchure window sizes and this can easily be measured in metric, or a once-off calculation to imperial could be done before manufacture.
Phill

One does not equal two. Not even for very large values of one.
User avatar
walrii
Posts: 1174
Joined: Wed Jan 05, 2005 5:21 pm
antispam: No
Location: Burkburnett, TX

Re: Whistle Calculator Version 2

Post by walrii »

Thanks, Doc. The drill bits were what I was looking for. I can measure lengths in metric but all my drill bits are inches. BTW, I ran Jerry Freeman's new tweaked Gen A through the calculator and it came out with a curved plot, flat on the left side (bottom of whistle) at a cut-off ratio of about 4.0 then dropped off to about 2.8 at the right side (top of whistle). Jerry's A is a great whistle - is this what the curve is supposed to look like of has Jerry figured a way to bend the laws of physics? Or is there more art than science at work here?
The Walrus

What would a wild walrus whistle if a walrus could whistle wild?

The second mouse may get the cheese but the presentation leaves a lot to be desired.
User avatar
DrPhill
Posts: 1610
Joined: Wed Nov 19, 2008 11:58 am
antispam: No
Please enter the next number in sequence: 10
Location: None

Re: Whistle Calculator Version 2

Post by DrPhill »

I am glad the drill bits were all you needed. While reorganising the code I thought that would be an adequate solution, and you confirm this (n=1).

As far as what the cut-off ratio graph should look like, well to be honest, I don't know. Odd as it may seem I am little more than a jobbing programmer here - with no pretence to understanding the depths of acoustic physics. I continued with idea of a graph as a pleasing and very visual representation of the cut-off ratio. Someone (maybe Daniel Bingamon, but I cannot be sure) suggested that the cut-off ratios all be 'about equal'. They should certainly be above two so that the second octave can speak, but further than that it may be art rather than science as you suggest.

I may do away with the graph in future versions, perhaps I will write the cut-off ratio under the hole position, and colour it red if it goes below two. That way I can free up some space to draw more than one whistle at a time. Drawing several whistles may be more interesting to most folk than (arcane) graphs.
Phill

One does not equal two. Not even for very large values of one.
Kypfer
Posts: 500
Joined: Fri Oct 29, 2010 4:27 pm
antispam: No
Please enter the next number in sequence: 12

Re: Whistle Calculator Version 2

Post by Kypfer »

I quite like the graph ... I'm a great one for immediate graphical representation rather than having to visualise things from numbers, where possible. What would be nice are a couple more horizontal lines (can't think of the technical name at the moment) on the graph, especially a line exactly at 2 if some of the points on the graph are below this critical frequency, just to help see things at a glance.

I'm not quite sure what use there is in having two whistles repesented on the screen at the same time ... I'm probably missing something :-?

Something I haven't quite got to grips with ... if I save a whistle configuration, an appropriately named wdf file appears in the sub-directory, but when I try to load it again, it doesn't load ... nothing changes :-?
"I'm playing all the right notes—but not necessarily in the right order."
User avatar
DrPhill
Posts: 1610
Joined: Wed Nov 19, 2008 11:58 am
antispam: No
Please enter the next number in sequence: 10
Location: None

Re: Whistle Calculator Version 2

Post by DrPhill »

Kypfer wrote:I quite like the graph ... I'm a great one for immediate graphical representation rather than having to visualise things from numbers, where possible. What would be nice are a couple more horizontal lines (can't think of the technical name at the moment) on the graph, especially a line exactly at 2 if some of the points on the graph are below this critical frequency, just to help see things at a glance.

I'm not quite sure what use there is in having two whistles repesented on the screen at the same time ... I'm probably missing something :-?

Something I haven't quite got to grips with ... if I save a whistle configuration, an appropriately named wdf file appears in the sub-directory, but when I try to load it again, it doesn't load ... nothing changes :-?
Thanks for the feedback Kypfer.

You like the graph more than you would like to compare whistles on screen? Point noted. The horizontal line indicating cut-off ratio of two might work. Lets see how many users want this and how many want to compare whistles - I will go with the majority opinion.

As for the reload thing, I am not sure what is going on here. Have you named your whistle (edit - whistle name) - if not then perhaps
you ought as it makes it easier to see what is going on. What may have happened is that the Whistle Calculator has reloaded your saved whistle already - so when you reload your whistle you will see no change in the GUI.

Whistle Calculator saves the filenames of files you were working on at shutdown (only whistles that have been saved, though), and reloads them at start up.

Start up Whistle Calculator afresh, and look at the title bar. If you are in a 'clean' state the title bar will contain the text 'Unamed Whistle' (unsaved). If it has reloaded your whistle you should at least see the filename instead of the word 'unsaved'.

Another thing you can do is go to the 'view' menu. This shows you the whistle(s) you currently have in memory, and you can swap between them. If you have reloaded the whistle, as well as The whistle Calculator reloading it, then you will have two identical entries........

Do these ramblings help clarify? Or do you think that there is a deeper problem?

Do let me know - it is the only way things will get fixed.
Phill

One does not equal two. Not even for very large values of one.
User avatar
hans
Posts: 2259
Joined: Fri Nov 01, 2002 6:00 pm
antispam: No
Please enter the next number in sequence: 8
Tell us something.: I've been making whistles since 2010 in my tiny workshop at my home. I've been playing whistle since teenage times.
Location: Moray Firth, Scotland
Contact:

Re: Whistle Calculator Version 2

Post by hans »

I do not see the point of having a graph for cut-off frequencies, or cut-off frequency factors. If there is a relationship between cut-off frequencies of neighbouring holes perhaps someone can explain this. If not, then there is no point for the graph, and simple figures would be enough, with a possible warning when the factor goes below 2.

Phill, I still hope you can incorporate a "transparency" option for the 3D whistle image, so one can holes on the back without having to rotate the whole thing. I like to see the holes in relation to each other, so I need to "see through" the body to see the thumb hole in relation to first and second hole.
User avatar
DrPhill
Posts: 1610
Joined: Wed Nov 19, 2008 11:58 am
antispam: No
Please enter the next number in sequence: 10
Location: None

Re: Whistle Calculator Version 2

Post by DrPhill »

hans wrote:I do not see the point of having a graph for cut-off frequencies, or cut-off frequency factors. If there is a relationship between cut-off frequencies of neighbouring holes perhaps someone can explain this. If not, then there is no point for the graph, and simple figures would be enough, with a possible warning when the factor goes below 2.

Phill, I still hope you can incorporate a "transparency" option for the 3D whistle image, so one can holes on the back without having to rotate the whole thing. I like to see the holes in relation to each other, so I need to "see through" the body to see the thumb hole in relation to first and second hole.
OK Hans, one for the graph, one against. I must admit that I am not hugely convinced by the case for the graph.

As far as the transparency thing, I will look at an alternate renderer, selectable by menu, and remembered in the configuration file to set the choice at start-up. A line drawing, no shading, with hidden hole lines in lighter colour. Would that work for you?
Phill

One does not equal two. Not even for very large values of one.
User avatar
hans
Posts: 2259
Joined: Fri Nov 01, 2002 6:00 pm
antispam: No
Please enter the next number in sequence: 8
Tell us something.: I've been making whistles since 2010 in my tiny workshop at my home. I've been playing whistle since teenage times.
Location: Moray Firth, Scotland
Contact:

Re: Whistle Calculator Version 2

Post by hans »

DrPhill wrote:A line drawing, no shading, with hidden hole lines in lighter colour. Would that work for you?
That may be fine! It could be shaded though, using some opacity to see what is "behind" in a different shade of greyness (lighter).
Kypfer
Posts: 500
Joined: Fri Oct 29, 2010 4:27 pm
antispam: No
Please enter the next number in sequence: 12

Re: Whistle Calculator Version 2

Post by Kypfer »

Do these ramblings help clarify? Or do you think that there is a deeper problem? Do let me know
OK
I've got TWCalc in a sub-directory all by itself, with it's associated wdf files, an ini file (which I've tried deleting and letting the program re-create a new one) and one spn file.

When I start TWCalc it's header says "Unnamed Whistle (Unsaved)"
I then choose "File | Load Whistle (replace current)" and nothing changes

the same happens if I choose "File | Load Whistle"

Here's the test_whistle.wdf file I'm trying with :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<WhistleCalculator Version="2.00">
<WhistleSpecification>
<Scale>
<ScalePatternName>Major ET</ScalePatternName>
<BaseNoteName>D5</BaseNoteName>
</Scale>
<WhistleName><![CDATA[Test Whistle]]></WhistleName>
<Tube>
<Bore>10.0</Bore>
<Thickness>0.16</Thickness>
</Tube>
<Window>
<Width>6.35</Width>
<Length>6.35</Length>
</Window>
<Holes HoleCount="7">
<Hole1>
<Width>5.0</Width>
<Offset>0</Offset>
</Hole1>
<Hole2>
<Width>5.0</Width>
<Offset>0</Offset>
</Hole2>
<Hole3>
<Width>5.0</Width>
<Offset>0</Offset>
</Hole3>
<Hole4>
<Width>5.0</Width>
<Offset>0</Offset>
</Hole4>
<Hole5>
<Width>5.0</Width>
<Offset>0</Offset>
</Hole5>
<Hole6>
<Width>5.0</Width>
<Offset>0</Offset>
</Hole6>
</Holes>
</WhistleSpecification>
</WhistleCalculator>

the only things I've changed from default are the name and the bore of the pipe before I saved it, but it doesn't re-load :-?
"I'm playing all the right notes—but not necessarily in the right order."
User avatar
DrPhill
Posts: 1610
Joined: Wed Nov 19, 2008 11:58 am
antispam: No
Please enter the next number in sequence: 10
Location: None

Re: Whistle Calculator Version 2

Post by DrPhill »

Puzzling.....

I copied your file contents to a new file, followed the sequence of events that you followed, and got the results that I would expect.

When you say 'nothing changes' does that include the title bar? Does it still say "'Unnamed' (unsaved)"? If you look at the view menu (after a load rather than a load (replace)) does it show more than one loaded whistle?
Phill

One does not equal two. Not even for very large values of one.
Post Reply