Meadowphysics (norns)

Meadowphysics (norns)

grid-enabled rhizomatic cascading counter

port of the ansible meadowphysics to norns. original code by @tehn . midi out capability. uses the PolyPerc engine.

Requirements

  • norns
  • grid

Documentation

https://monome.org/docs/modular/meadowphysics/
https://monome.org/docs/modular/ansible/

k2:  toggle between meadowphysics and scale mode^
k3:  save meadowphysics data to `data/mp.data`
k3^: save scales data to  `data/gridscales.data`
e2:  change root note
e3:  bpm change

Download

v1.0.0 - https://github.com/alpha-cactus/meadowphysics/archive/master.zip

22 Likes

I noticed that 1/64 notes in the params is giving me 1/32 timing. Not a complaint by all means just a heads up if anyone else wants to check it out.

1 Like

thanks for the report I’ll take a look at it shortly here.

alright apologies for taking so long to get back around on this. the midi code is directly ported from awake where I see a similar issue when using 1/64 notes.

code is as follows:

options.STEP_LENGTH_DIVIDERS = {1, 2, 3, 4, 6, 8, 12, 16, 24, 32, 48, 64}
beat_clock.ticks_per_step = 96 / options.STEP_LENGTH_DIVIDERS[value]
beat_clock.steps_per_beat = options.STEP_LENGTH_DIVIDERS[value] / 4
beat_clock:bpm_change(beat_clock.bpm)

so doing the math at 32 notes you get 3 ticks per step and 8 steps per beat. at 64 notes you get 1.5 ticks per step and 16 steps per beat. so I think I’m going to have to take a look at the beatclock library to see what’s going on.

1 Like

hi. hoping for help. meadowphysics used to work, but after installing some new scripts “timeparty, otis updates” it now no longer loads and I get the following error…thoughts?

pset >> read: /home/we/dust/data/meadowphysics/mp_midi/mp_midi.pset

SCRIPT ERROR: init

/home/we/dust/code/meadowphysics/mp_midi.lua:52: bad argument #1 to ‘pairs’ (table expected, got nil)

stack traceback:

/home/we/norns/lua/core/norns.lua:185: in function </home/we/norns/lua/core/norns.lua:185>

[C]: in function ‘pairs’

/home/we/dust/code/meadowphysics/mp_midi.lua:52: in field ‘action’

/home/we/norns/lua/core/params/option.lua:48: in function ‘core/params/option.bang’

/home/we/norns/lua/core/params/option.lua:35: in function ‘core/params/option.set’

/home/we/norns/lua/core/paramset.lua:246: in function ‘core/paramset.read’

/home/we/norns/lua/core/paramset.lua:264: in function ‘core/paramset.default’

/home/we/dust/code/meadowphysics/mp_midi.lua:211: in global ‘init’

/home/we/norns/lua/core/script.lua:71: in function ‘core/script.init’

[C]: in function ‘xpcall’

/home/we/norns/lua/core/norns.lua:186: in field ‘try’

/home/we/norns/lua/core/engine.lua:83: in function </home/we/norns/lua/core/engine.lua:82>

reading PMAP /home/we/dust/data/meadowphysics/mp_midi/mp_midi.pmap

and this is the SC report from Maiden:

304

305

306

307

308

309

310

311

312

313

314

315

316

317

318

319

320

321

322

mp:gridredraw(g)

end

end

function enc(n, d)

if n == 1 then

mix:delta("output", d)

elseif n == 2 then

params:delta("root_note", d)

draw_gridscales()

elseif n == 3 then

params:delta("bpm", d)

draw_bpm()

end

end

function key(n, z)

if n == 1 and z == 1 then

matron

sc

CroneEngine.free

free engine: an Engine_Timber

CroneEngine.free

FAILURE IN SERVER /n_free Node 1015 not found

FAILURE IN SERVER /n_free Node 1016 not found

FAILURE IN SERVER /n_free Node 1017 not found

a CroneAudioContext

[ CroneEngine adding command, hz, f, a Function ]

[ CroneEngine adding command, amp, f, a Function ]

[ CroneEngine adding command, pw, f, a Function ]

[ CroneEngine adding command, release, f, a Function ]

[ CroneEngine adding command, cutoff, f, a Function ]

[ CroneEngine adding command, gain, f, a Function ]

-----------------------

-- crone: done loading engine, starting reports

--------

engine: an Engine_PolyPerc

command entry: [ 0, hz, f ]

command entry: [ 1, amp, f ]

command entry: [ 2, pw, f ]

command entry: [ 3, release, f ]

command entry: [ 4, cutoff, f ]

command entry: [ 5, gain, f ]

cpu_peak

cpu_avg

amp_in_l

amp_in_r

amp_out_l

amp_out_r

pitch_in_l

pitch_in_r

would still love to have the option to load samples in meadowphysics like you could on Norns 1.0

bumping to see if anyone has any thoughts? i’m outta my league here
:slight_smile:

You could try deleting the pmap/pset files and then reload MP

/home/we/dust/data/meadowphysics/mp_midi/mp_midi.pmap
/home/we/dust/data/meadowphysics/mp_midi/mp_midi.pset

Aha - I just got it to reproduce your error after saving a pset.

steps to reproduce:

  • in params set output to audio + midi
  • save a preset to default
  • reload MP
  • error happens

So if you delete the psets it should probably work again, but preset saving may be broken if you set output to audio+midi.

@alphacactus should I file this on github?

3 Likes

awesome! thanks…will try and report back :muscle:

EDIT:

that did the trick. one million thanks okyeron!
IMG_3310

2 Likes

Thanks for porting this to norns!
Im having trouble slaving it to incoming midi clock, other apps do react to external midi clock.
Anything i might be missing?
Cheers

Am getting lots of index errors after the upgrade. Anyone else experiencing this? It just hangs on loading and maiden and sc throw indexing errors…

stopPoll failed; couldn't find index 10

stopPoll failed; couldn’t find index 15
stopPoll failed; couldn’t find index 14
stopPoll failed; couldn’t find index 13
stopPoll failed; couldn’t find index 12
stopPoll failed; couldn’t find index 9
stopPoll failed; couldn’t find index 8
stopPoll failed; couldn’t find index 11
CroneEngine.free

Edit: works after restart. Weird. Never mind :slight_smile:

sorry been away from things for awhile. not going to be able to support development for the foreseeable future if anyone wants to take the reigns for the meadowphysics port.

I’m looking for OSS work to contribute to at the moment. Happy to help out. (Edit: Forked, I’ll read back through this thread and file issues this afternoon)

4 Likes

Thanks for this. It’s a wonderful application and I’d be bummed to lose it.

Would you like to maintain your repo as the master repo and handle pull requests? I’m working on some updates this afternoon as well :slight_smile:

2 Likes

Did you get external clock sync working?

Hi! Thanks for checking,
I think i got it working but my memory aint great,
Ill check later and let you know.
Cheers!

I made an issue for this in my fork: https://github.com/dansimco/meadowphysics/issues/2

I’ve been doing some learning-by-refactoring with the script there, and some changes to the ui rendering that are if anything just more to my taste. Will get onto the preset issue first, then probably look at sample playback among more ui tinkering.

2 Likes

here’s the ack sample playing version by the way. it’s from the old dust repo so it’ll need a few updates.

5 Likes