Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Bizarre hanging on function gen-sieve (probably loop)

Featured Replies

This caused a hanging (not responding) crash. I don´t know why...

 

THIS CRASHES

(setf padrao '(7 -1 -5 4 -3 2 12 -16))
(setf pitches (gen-sieve '(c4 e6) padrao :type :pitch))

 

THIS DON´T CRASH

(setf padrao '(7 -1 -5 4 -3 2 12 -15))
(setf pitches (gen-sieve '(c4 e6) padrao :type :pitch))

 

a speculation...

 

example 1: because the SUM is 0!! so it will never go up to 'e6

example 2: sum is 1, it will work

  • Author
On 11/23/2019 at 7:47 AM, opmo said:

Use positive values only.

'(1 -1) could go for ever 🙂

 

Yes, like looping. Thanks.

 

On 11/23/2019 at 6:44 AM, AM said:

a speculation...

 

example 1: because the SUM is 0!! so it will never go up to 'e6

example 2: sum is 1, it will work

Yes, thank you.

 

Create an account or sign in to comment

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.