This is very helpful! Thank you. Yeah, it will be interesting to see how best to adapt old patches to work with Norns and I expect this will widen my horizons for my programming in the future.

of course.

// CroneEngine_TestSine
// dumbest possible test: a single, mono sinewave
Engine_TestSine : CroneEngine {
	var <synth;

	*new { arg context, doneCallback;
		^super.new(context, doneCallback);
	}

	alloc {
		synth = {
			arg out, hz=220, amp=0.5, amplag=0.02, hzlag=0.01;
			var amp_, hz_;
			amp_ = Lag.ar(K2A.ar(amp), amplag);
			hz_ = Lag.ar(K2A.ar(hz), hzlag);
			Out.ar(out, (SinOsc.ar(hz_) * amp_).dup);
		}.play(args: [\out, context.out_b], target: context.xg);

		this.addCommand("hz", "f", { arg msg;
			synth.set(\hz, msg[1]);
		});

		this.addCommand("amp", "f", { arg msg;
			synth.set(\amp, msg[1]);
		});
	}

	free {
		synth.free;
	}
}

here the smoothing is done in the synthdef. but it could be on a Bus with a separate synth. the PolySub engine in earthesea and so on, uses shared control buses for the multiple synth voices.

3 Likes

6 posts were merged into an existing topic: Norns: maiden

hiya, after implementing the ack sample player engine for norns and looking into making sample start / end / loop point parameters real-time modulatable with loop windowing/crossfading i found this: http://sccode.org/1-51A

haven’t tried it yet, but looks great. what license is this code under? would you mind us using it or parts of it for “ack” ?

5 Likes

Yes of course feel free to use that code (there’s no license). I was trying to make something a little bit like abelton’s simpler sampler in SC…

3 Likes

(moderator edit: moved some posts to Norns: maiden)

2 Likes

hi everybody

i spent most of yesterday evening exploring the scripts and lib folders in attempt to better understand norns . it really beautiful how this system has been arranged!

there is still plenty for me to dissect but i’ll ask a few questions:

  • where can i find Engine_SoftCut.sc?
  • also if i’d like to teach myself how to add live input recording to a sampling instrument should i be searching in sc or lua scripts of existing apps?
1 Like

it is in the main norns repo, that’s yet to be published (with the required ugens). upd: now moved to dust.

both! but supercollider docs on buffers and recording ugens won’t hurt either.

1 Like

thanks

i guess that’s where PolySub is hidden also
can’t wait to see all of these amazing engines ya’ll prepared for us!

they’re up: https://github.com/monome/dust/tree/master/lib/sc

update getting ready

9 Likes

so wonderful to have these up so quickly
thank you tehn (and the gang)

i’m impressed by the brevity of all these source files!

2 Likes

Is the ideal hacking workflow here that engines can be edited in maiden as well?

I’m really regretting that I didn’t pre order a Norns. Is there any useful way I could play with some of the code if I don’t have access to the hardware?

— now getting it actually working… will probably require some work. And then you’ll need to figure out the hardware interface side of things.

I know @mzero had been talking about making some efforts on getting this working with rpi+pisound.

2 Likes

is that the repo that was mentioned previously?
I would love to get the code working on my linux64 machine as well as the Norns device

Yes that’s where you would go. Everything works fine on other linuxes, except the screen and GPIO. Adapting screen should be simple (it’s a Cairo surface.) Adapting GPIO a little more arbitrary.

6 posts were merged into an existing topic: Norns: Development

any suggestion on how to fake the cairo surface?
i DO have a grids but i was out today and missed the USPS guy so Friday is my first visit to Nornia

3 Likes

This is the funniest thing I’ve read all day. Time for some Nornia memes (in another thread, of course).

2 Likes

Turkish Delights of course

3 Likes