Skip to content
View in the app

A better way to browse. Learn more.

Opusmodus

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

integer to attribute

Featured Replies

Can I assign integer to attribute, for e.x integer to attribute?

  • Author

I want to define pizz=0, arco-ord =1, arco-tasto=2, arco-ponte=3, then to apply to a string of pitch classes (0-11) mod 4, this will give me another string (0-3) and I want this string to be transformed to a string of attributes according to my definition.

you want to map some integers (in your case pc..) to attributes? like that?

 

(position-filter  '(0 1 2 3 4 5)  '(pizz arco ponte molto-ponte stacc stacc+pizz ten+arco ten+molto-ponte))
=> (pizz arco ponte molto-ponte stacc stacc+pizz)


(position-filter  (pcs '6-Z10) '(pizz arco ponte molto-ponte stacc stacc+pizz ten+arco ten+molto-ponte))
=> (pizz arco molto-ponte stacc stacc+pizz ten+molto-ponte)

or in pure CCL

(loop 
  for i in '(0 1 2 3 4 5)
  with attr-list = '(pizz arco ponte molto-ponte stacc stacc+pizz ten+arco ten+molto-ponte)
  collect (nth i  attr-list))
=> (pizz arco ponte molto-ponte stacc stacc+pizz)

 

Something like that :

(substitute-map '(pizz arco+ord arco+tasto arco+ponte) '(0 1 2 3) '(0 3 2 3 1 3 2 3 3 1 0 0 2 0))
=> (pizz arco+ponte arco+tasto arco+ponte arco+ord
    arco+ponte arco+tasto arco+ponte arco+ponte
    arco+ord pizz pizz arco+tasto pizz)

SB.

  • Author

Thank you!

Create an account or sign in to comment


Copyright © 2014-2026 Opusmodus™ Ltd. All rights reserved.
Product features, specifications, system requirements and availability are subject to change without notice.
Opusmodus, the Opusmodus logo, and other Opusmodus trademarks are either registered trademarks or trademarks of Opusmodus Ltd.
All other trademarks contained herein are the property of their respective owners.

Powered by Invision Community

Important Information

Terms of Use Privacy Policy

Account

Navigation

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.