noLoop | PureData patch for noLoop Synth | Audio Utils library
kandi X-RAY | noLoop Summary
kandi X-RAY | noLoop Summary
PureData patch for noLoop Synth.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of noLoop
noLoop Key Features
noLoop Examples and Code Snippets
Community Discussions
Trending Discussions on noLoop
QUESTION
I have made my own image filters. When the mouse is clicked on the original (left) image, it is meant to create a radial blur effect on the processed (right) image. However, after testing it I have found that it only works if I have my mouse over the picture as it's loading. Then, if I click my mouse, the original picture is processed and it looks like the filter gets stronger on the already processed image to the right like it gets another filter applied on top. This continues the more I click. Would anyone have an idea of what I've done wrong? I'm not sure where the issue with my code is.
...ANSWER
Answered 2022-Mar-21 at 09:37As Sam mentioned in the comment, you're re-applying the filters to the same pixels each time: hence the cumulative effect.
You could simply make a copy of the input p5.Image
using get()
and apply the filters to that instead of the original image (which after the first filter is altered):
QUESTION
My code is meant to display the same image side by side where the left image is the original and the right image has a filter. I can see the filter works but the altered image is being displayed across the width of the canvas at the top repeatedly.
I am also getting the error "Cannot read properties of undefined (reading 'width')" for line 'image(Filter(img), img.width, 0);'
.
I assume that there is an issue with the Filter function and the parameter is not being called correctly but I'm not sure.
...ANSWER
Answered 2022-Mar-02 at 08:33The issue is that the sepiaFilter
function does not return a value. As a result when you call image(earlyBirdFilter(imgIn), imgIn.width, 0);
you are effectively calling image(undefined, imgIn.width, 0);
which results in the error.
QUESTION
I've tried a Goto 10 exercise on Processing and have no idea where is my mistake. The intent was to make a Goto 10 like scenario but there's something I'm missing. I believe the loop may be off.
...ANSWER
Answered 2021-Nov-30 at 00:32The amount by which you're translating the x movements of each column don't add up to the full width of the sketch:
for(int lineX = 0; lineX < width/a; lineX++)
width/a
will be 33.333 in your example (500 / 15). So you'll end up with 33 loops and 33 columns. But 33 columns * 15 px wide = 495 (not 500).
So when you try to translate back to the beginning of the new row with translate((-width), a);
you're moving back a little bit too far each row (-500 instead of -495).
To fix it, make sure you only move back the distance that you moved forward while drawing the columns:
QUESTION
So ultimately I'm trying to figure out a loop that could create dots in-between the 2 points. If anyone could figure this out it would be greatly appreciated!
...ANSWER
Answered 2022-Mar-18 at 05:24You can use a for loop and conditionals to draw the circles incrementing the x and y values in each iteration.
QUESTION
So i've used a rect to divide the screen for two different background colours. The code im writing is for a minigame and its supposed to move a bubble up the screen, but when I click my mouse the rect I used to divide the screen moves as well. I probably did a very poor job at describing this so heres the code and you'll see what I mean.
...ANSWER
Answered 2022-Mar-01 at 09:18rectMode(CENTER);
QUESTION
I have been trying to recreate one of Vera Molnar's paintings, and to add a twist, I wanted to randomize the colors in the array as I drag my mouse over the canvas. However, I cannot for the life of me figure out how to do this. Below is one of many attempts at this. What could I be doing wrong?
As for the colors, the intial order of the colors is something I would like to keep, as it is directly mimicking the original painting, but as the mouse is moved into the canvas/frame, i want to trigger the random colors.
Thank you for your help!
...ANSWER
Answered 2022-Feb-12 at 07:56If you want to change color for a specific ellipse, you might need to calculate the position based on mouseX and mouseY coordinates.
In this sketch - https://editor.p5js.org/yeren/sketches/7SCNsEMo_, I'm simply shuffling the color array when the mouse is moved over the canvas.
Also, if possible avoid mutating the array.
QUESTION
Goal: export this output as a GIF.
This is working code, using Processing and Python.
I am stuck with reading the image filenames to create a GIF.
I downloaded gif-animation-3.0
and placed it in libraries
folder.
Attempted Solution:
...ANSWER
Answered 2022-Feb-05 at 12:09pip install gifmaker
gifmaker -i *.png
QUESTION
Basically the title. I have read every line many times and still can't find my mistake. I am just trying to put squares on a grid by calling a recursive function which creates the object and then calls itself again. I have checked that recursion is not infinite and there's a simple exit condition. Please help.
...ANSWER
Answered 2022-Jan-10 at 03:29As Jay pointed out in the comments, it's not the recursion that is the problem, but the while (flag)
loop in your sqrs
constructor that is the problem:
QUESTION
ANSWER
Answered 2022-Jan-05 at 23:54You need to add angleMode(DEGREES)
so you can use degrees instead of radians (more info here: https://p5js.org/reference/#/p5/angleMode)
Also you want to go from 0 to 360 instead of to 12 (amount) I created a var to hold the 360 to avoid confusion. There you go!
QUESTION
I got a problem with my processing Code. I made a grid witch is filled with some SVG's at an random position. With PNG's and the PImage it work's fine but I want to do it with SVG to change the Stroke Color, Weight and Size of the Icons.
After I wrote the Code into the Shape to get it work with SVG's I wanted to place an disableStyle() to change the values but I get the error "Cannot invoke disableStyle() on the array type PShape[]".
Anyone a suggestion what the Problem is?
Hope for some good answers. Thank you!
...ANSWER
Answered 2021-Dec-16 at 23:51Your Icon
variable is of type PShape[]
. The brackets mean it is an array of PShape objects. Array
does not have a method called disableStyle()
which is why you get an error that you can’t invoke that method on the Icon
variable.
To use that method, you’ll need to access the individual PShape elements in the array:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install noLoop
You can use noLoop like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page