Re: [LAU] Merry Christmas Python Chiptune (sortof)

From: Will Godfrey <willgodfrey@email-addr-hidden>
Date: Wed Dec 27 2017 - 02:01:15 EET

On Wed, 27 Dec 2017 00:35:02 +0100
Lorenzo Sutton <lorenzofsutton@email-addr-hidden> wrote:

>On 26/12/17 22:34, Ivan K wrote:
>>
>>
>>
>> When I execute:
>>> python pybells_2017.py
>>
>> I get the following message:
>>
>>> Calculating notes...
>>> Traceback (most recent call last):
>>> File "pybells_2017.py", line 203, in <module>
>>> 0, MAX_AMPLITUDE, NOTE_DURATION * ATTACK_FACTOR, MASTER_VOLUME
>>> File "pybells_2017.py", line 60, in make_ramp
>>> for _ in range(1, size):
>>> TypeError: range() integer end argument expected, got float.
>>
>> and no .wav file is created. How do I fix this?
>> Am I missing a python library ?
>
>
> >> *(Needs python3)*
>
>I think you are using python 2 as your default python, while the script
>needs python 3... To verify this run:
>
>python --version
>
>In that case see if you also have python 3 installed:
>
>python3 --version
>
>If that gives a version number (and not a command not found error) try:
>
>python3 pybells_2017.py
>
>Works? :)
>
>Lorenzo.

Did for me :)

-- 
Will J Godfrey
http://www.musically.me.uk
Say you have a poem and I have a tune.
Exchange them and we can both have a poem, a tune, and a song.
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
https://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Wed Dec 27 04:15:03 2017

This archive was generated by hypermail 2.1.8 : Wed Dec 27 2017 - 04:15:04 EET